-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (32 loc) · 930 Bytes
/
events.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
name: Get Events
on: workflow_dispatch
permissions:
contents: write
env:
FIREBASE_API_KEY: ${{ secrets.FIREBASE }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout hackertracker-export
uses: actions/checkout@v4
with:
repository: cak/hackertracker-export
path: hackertracker-export
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Fetch events
run: |
npm install --prefix hackertracker-export
npm run export --prefix hackertracker-export
cp -r hackertracker-export/out/ht ./public
- name: Commit changes
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add public/ht
git commit -m "update ht events"
git push