Skip to content

Commit

Permalink
Merge pull request #81 from snypy/version-bump
Browse files Browse the repository at this point in the history
Add version bump workflow
  • Loading branch information
nezhar authored May 8, 2022
2 parents de491ec + 9ff1d56 commit 2a8900a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Version bump
on:
release:
types: [published]

jobs:
openapi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: 'https://github.com/snypy/snypy-docker'
token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}

- 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

0 comments on commit 2a8900a

Please sign in to comment.