Skip to content

Commit

Permalink
ci: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
manhinhang committed Apr 16, 2024
1 parent 99683a3 commit 0aea5a0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/detect-new-ver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
- name: Update files with new version
if: steps.check-update.outputs.has_update == 'true'
run: |
cat README.template | envsubst > README.md
cat Dockerfile.template | envsubst > Dockerfile
cat README.template | envsubst > README.template
cat Dockerfile.template | envsubst > Dockerfile.template
- name: Create PR
if: ${{ steps.check-update.outputs.has_update == 'true' }}
env:
Expand All @@ -47,6 +47,10 @@ jobs:
git config user.email [email protected]
git pull
git checkout -b "$branch" origin/master
# Update files
cp README.template README.md
cp Dockerfile.template Dockerfile
#####
git add *
git commit -m 'Update to `${{ steps.check-update.outputs.ib-gateway-ver }}`'
git push --set-upstream origin "$branch"
Expand Down

0 comments on commit 0aea5a0

Please sign in to comment.