From a09b807d05d10efa9dd889c8ca3650d022de5e38 Mon Sep 17 00:00:00 2001 From: manhinhang Date: Wed, 17 Apr 2024 03:02:32 +0800 Subject: [PATCH] ci: update workflow --- .github/workflows/detect-new-ver.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/detect-new-ver.yml b/.github/workflows/detect-new-ver.yml index 9dad7fe..eeda28c 100644 --- a/.github/workflows/detect-new-ver.yml +++ b/.github/workflows/detect-new-ver.yml @@ -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.update + cat Dockerfile.template | envsubst > Dockerfile.update - name: Create PR if: ${{ steps.check-update.outputs.has_update == 'true' }} env: @@ -47,6 +47,10 @@ jobs: git config user.email github-actions@github.com git pull git checkout -b "$branch" origin/master + # Update files + cp README.update README.md + cp Dockerfile.update Dockerfile + ##### git add * git commit -m 'Update to `${{ steps.check-update.outputs.ib-gateway-ver }}`' git push --set-upstream origin "$branch"