-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (41 loc) · 1.22 KB
/
foursquare_zipcode.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Foursquare Zipcode
on:
workflow_dispatch:
repository_dispatch:
types: [foursquare_zipcode]
jobs:
build:
runs-on: self-hosted
container: nycplanning/rdp:latest
env:
AWS_S3_ENDPOINT: ${{ secrets.AWS_S3_ENDPOINT }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v2
- name: Set Up
shell: bash
run: |
./rdp setup
mkdir -p ~/.ssh
mc cp spaces/recovery-data-partnership/utils/id_rsa ~/.ssh/id_rsa_axway
mc cp spaces/recovery-data-partnership/utils/.env .env
chmod 600 ~/.ssh/id_rsa_axway
- name: Run recipes
shell: bash
run: |
./rdp run recipe foursquare zipcode
- name: Clean up
shell: bash
run: |
rm ~/.ssh/id_rsa_axway
rm .env
- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@master
with:
status: ${{ job.status }}
mention_users: 'U01J189FNNP'
mention_users_when: 'failure,warnings'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}