1.5.2 #13
Workflow file for this run
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: Version bump | |
on: | |
release: | |
types: [published] | |
jobs: | |
version_bump: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: 'snypy/snypy-docker' | |
token: ${{ secrets.API_TOKEN_GITHUB }} | |
- name: Update env file | |
run: | | |
cat .env | |
export $(cat .env | xargs) | |
export API_VERSION=${{ github.event.release.tag_name }} | |
envsubst < .env.template > .env | |
cat .env | |
- name: Create commit | |
run: | | |
git config --global user.name "Continuous Integration" | |
git config --global user.email "[email protected]" | |
git add .env | |
git commit -m "Bump API_VERSION to ${{ github.event.release.tag_name }}" | |
git push |