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 355fd46
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/detect-new-ver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@ jobs:
else
echo "New IB gateway version($IB_GATEWAY_VER)"
echo has_update=true >> "$GITHUB_OUTPUT"
fi
- 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
fi
- name: Create PR
if: ${{ steps.check-update.outputs.has_update == 'true' }}
env:
Expand All @@ -47,6 +42,10 @@ jobs:
git config user.email [email protected]
git pull
git checkout -b "$branch" origin/master
# update files
cat README.template | envsubst > README.md
cat Dockerfile.template | envsubst > 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 355fd46

Please sign in to comment.