Skip to content

Commit

Permalink
ci: Add ALL_RELEASES.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
iakat committed Dec 12, 2024
1 parent 8e2ece4 commit 94461c6
Show file tree
Hide file tree
Showing 2 changed files with 1,650 additions and 29 deletions.
56 changes: 27 additions & 29 deletions .github/workflows/update.yaml
Original file line number Diff line number Diff line change
@@ -1,41 +1,39 @@
on:
schedule:
# Every day after globe_history has been uploaded
- cron: '21 5 * * *'
# Every day after globe_history has been uploaded
- cron: '21 5 * * *'
# But also on push
push:
branches:
- main


- main
jobs:
update-db:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update database
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -ex
# We are idempotent
# We try not to exit with an error code
# We push if the files have changed, otherwise we do not
- uses: actions/checkout@v2
- name: Update database
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -ex
# We are idempotent
# We try not to exit with an error code
# We push if the files have changed, otherwise we do not
# Install dependencies
sudo apt-get -y install python3-pip python3-dev
pip3 install --no-cache-dir -r requirements.txt
# Install dependencies
sudo apt-get -y install python3-pip python3-dev
pip3 install --no-cache-dir -r requirements.txt
# Run the script that affects RELEASES.md and PREFERRED_RELEASES.txt
python3 update-releases.py
# Run the script that affects RELEASES.md and PREFERRED_RELEASES.txt
python3 update-releases.py
# Now we try adding them, if they have changed
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git add RELEASES.md PREFERRED_RELEASES.txt README.md
# Have we actually changed anything?
if ! git diff-index --quiet HEAD --; then
# We have changed something, so we commit and push
git commit -m "Update RELEASES.md and PREFERRED_RELEASES.txt"
git push
fi
# Now we try adding them, if they have changed
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git add RELEASES.md PREFERRED_RELEASES.txt README.md ALL_RELEASES.txt
# Have we actually changed anything?
if ! git diff-index --quiet HEAD --; then
# We have changed something, so we commit and push
git commit -m "Update RELEASES.md and PREFERRED_RELEASES.txt"
git push
fi
1,623 changes: 1,623 additions & 0 deletions ALL-RELEASES.txt

Large diffs are not rendered by default.

0 comments on commit 94461c6

Please sign in to comment.