forked from USRSE/usrse.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.28 KB
/
jobs-poster.yaml
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
48
49
name: Post New Jobs
on:
push:
paths:
- '_data/jobs.yml'
branches:
- main
jobs:
slack-poster:
runs-on: ubuntu-latest
name: Run Jobs Slack Poster
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- id: updater
name: Job Updater
uses: rseng/jobs-updater@add/multiple-metadata-fields
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
with:
filename: "_data/jobs.yml"
# Fields to include (all but url will have title before)
keys: "name,location,url"
# Field to determine job uniqueness
unique: "url"
deploy: true
test: false
# Also deploy to Twitter (all secrets required in repository secrets)
twitter_deploy: true
twitter_api_secret: ${{ secrets.TWITTER_ACCESS_SECRET }}
twitter_api_key: ${{ secrets.TWITTER_ACCESS_TOKEN }}
twitter_consumer_secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
twitter_consumer_key: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
- run: echo ${{ steps.updater.outputs.fields }}
name: Show Fields Used
shell: bash
- run: echo ${{ steps.updater.outputs.matrix }}
name: Show New Jobs
shell: bash