Skip to content

Get Events

Get Events #9

Workflow file for this run

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