This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
Updates story generator versions in Github Actions #72
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: Updates story generator versions in Github Actions | |
# The Github Actions jobs (generate_story.yml and sequelize_story.yml) have | |
# version numbers of the story generator program hardcoded. The job below | |
# will run each time the docker image for the story generator is pushed to registry. | |
# Then it will update these versions automatically going forward :) | |
on: | |
registry_package: | |
types: [published] | |
jobs: | |
update-versions: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.DEPLOY_TOKEN }} | |
- name: Update the versions | |
run: | | |
./.github/scripts/update_story_generator_version.sh $GITHUB_SHA | |
- name: Push updated versions | |
run: | | |
git config --global user.name 'actions (automatic)' | |
git config --global user.email 'action@github.com' | |
git add .github/workflows/generate_story.yml | |
git add .github/workflows/sequelize_story.yml | |
git commit -m '[AUTO] Updated story generator version' | |
git push |