Skip to content

Commit

Permalink
feat: automate updating the release data
Browse files Browse the repository at this point in the history
  • Loading branch information
ibarrajo committed Feb 24, 2025
1 parent 8e9e430 commit 97d3d23
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/fetch-release-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Fetch release data
on:
schedule:
# Run every 8 hours
- cron: '0 */8 * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
fetch-release-data:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
scripts
static/data/releases
- run: |
./scripts/fetch-releases.sh
if git diff --quiet static/data/releases; then
echo "No changes to commit"
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add static/data/releases
git commit -m "Update release data"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 97d3d23

Please sign in to comment.