-
-
Notifications
You must be signed in to change notification settings - Fork 6
56 lines (44 loc) · 1.37 KB
/
jobs-bot.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
50
51
52
53
54
55
56
name: jobs update automated
on:
push:
paths:
- '_data/jobs.yaml'
branches:
- main
jobs:
jobs-poster:
runs-on: ubuntu-latest
name: Run Jobs Poster
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- id: updater
name: Job Updater
uses: rseng/jobs-updater@main
with:
filename: "_data/jobs.yaml"
# Fields to include (all but url will have title before)
keys: "title,location,employer,remote,url"
# Field to determine job uniqueness
unique: "url"
deploy: true
test: false
twitter_deploy: false
hashtag: "#HPC"
slack_deploy: true
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
bluesky_deploy: true
bluesky_email: ${{ secrets.BLUESKY_EMAIL }}
bluesky_password: ${{ secrets.BLUESKY_PASSWORD }}
discord_deploy: true
discord_webhook: ${{ secrets.DISCORD_WEBHOOK }}
mastodon_deploy: true
mastodon_access_token: ${{ secrets.MASTODON_ACCESS_TOKEN }}
mastodon_api_base_url: ${{ secrets.MASTODON_API_BASE_URL }}
- run: echo ${{ steps.updater.outputs.fields }}
name: Show Fields Used
shell: bash
- run: echo ${{ steps.updater.outputs.matrix }}
name: Show New Jobs
shell: bash