Get Events #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" || true | |
git push |