Skip to content

Commit 777623b

Browse files
committed
chore(ci): update .github/workflows/*yml go-version in rename-module workflow
1 parent 8a1d7a7 commit 777623b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/rename-module.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,18 @@ jobs:
7575
commit_message: "[AUTO] rename Go module + update internal import paths\n\nWorkflow: ${{ steps.vars.outputs.WORKFLOW_HASH }} on branch ${{ github.ref_name }}"
7676
repo: ${{ github.repository }}
7777
branch: ${{ steps.vars.outputs.DEST_BRANCH }}
78+
79+
- name: Update .github yml files "go-version" properties
80+
shell: bash
81+
run: |
82+
gomodver=$(sed -n 's/^go \([0-9.]*\)/\1/p' go.mod)
83+
sed -i '' -E "s/go-version: 1\.[0-9]\+/go-version: \$gomodver/g" .github/workflows/*.yml
84+
85+
- name: Signed commit to branch
86+
uses: planetscale/ghcommit-action@d4176bfacef926cc2db351eab20398dfc2f593b5 # v0.2.0
87+
env:
88+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
89+
with:
90+
commit_message: "[AUTO] update .github workflows go-version properties"
91+
repo: ${{ github.repository }}
92+
branch: ${{ needs.rename-module.outputs.vars.DEST_BRANCH }}

0 commit comments

Comments
 (0)