Skip to content

Commit a7e8b80

Browse files
committed
chore(ci): update linter new-from-rev in rename-module workflow
1 parent 990ce52 commit a7e8b80

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Diff for: .github/workflows/rename-module.yml

+26
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,29 @@ 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+
update-golangci:
80+
runs-on: ubuntu-latest
81+
needs: rename-module
82+
steps:
83+
- uses: actions/checkout@v4
84+
with:
85+
ref: ${{ needs.rename-module.outputs.vars.DEST_BRANCH }}
86+
depth: 1
87+
88+
- name: Update .golangci.yml new-from-rev
89+
uses: fjogeleit/yaml-update-action@main
90+
with:
91+
valueFile: ".golangci.yml"
92+
propertyPath: "issues.new-from-rev"
93+
value: $(git rev-parse HEAD)
94+
commitChange: false
95+
96+
- name: Signed commit to branch
97+
uses: planetscale/ghcommit-action@d4176bfacef926cc2db351eab20398dfc2f593b5 # v0.2.0
98+
env:
99+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
100+
with:
101+
commit_message: "[AUTO] update .golangci.yml new-from-rev"
102+
repo: ${{ github.repository }}
103+
branch: ${{ needs.rename-module.outputs.vars.DEST_BRANCH }}

0 commit comments

Comments
 (0)