Skip to content

1.4.0

1.4.0 #9

Workflow file for this run

name: Version bump
on:
release:
types: [published]
jobs:
version_bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
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 "username@users.noreply.github.com"
git add .env
git commit -m "Bump API_VERSION to ${{ github.event.release.tag_name }}"
git push