diff --git a/.github/workflows/assign.yaml b/.github/workflows/assign.yaml index 9a0faca822fe3..3204cc4894de7 100644 --- a/.github/workflows/assign.yaml +++ b/.github/workflows/assign.yaml @@ -43,7 +43,7 @@ jobs: - name: Installing Go uses: actions/setup-go@v4 with: - go-version-file: .github/shared-workflows/bot/go.mod + go-version: 'stable' # Run "check" subcommand on bot. - name: Assigning reviewers run: cd .github/shared-workflows/bot && go run main.go -workflow=assign -token="${{ secrets.GITHUB_TOKEN }}" -reviewers="${{ secrets.reviewers }}" diff --git a/.github/workflows/backport.yaml b/.github/workflows/backport.yaml index 4df672cffcb51..1c7b994afe852 100644 --- a/.github/workflows/backport.yaml +++ b/.github/workflows/backport.yaml @@ -40,7 +40,7 @@ jobs: - name: Installing Go uses: actions/setup-go@v4 with: - go-version-file: .github/shared-workflows/bot/go.mod + go-version: 'stable' # Run "check" subcommand on bot. - name: Backport PR run: ( cd .github/shared-workflows/bot && go build ) && .github/shared-workflows/bot/bot -workflow=backport -token="${{ steps.generate_token.outputs.token }}" -reviewers="${{ secrets.reviewers }}" diff --git a/.github/workflows/changelog.yaml b/.github/workflows/changelog.yaml index cd84e6873e58e..5eaaa49ad3293 100644 --- a/.github/workflows/changelog.yaml +++ b/.github/workflows/changelog.yaml @@ -37,6 +37,6 @@ jobs: - name: Installing Go uses: actions/setup-go@v4 with: - go-version-file: .github/shared-workflows/bot/go.mod + go-version: 'stable' - name: Validate the changelog entry run: cd .github/shared-workflows/bot && go run main.go -workflow=changelog -token="${{ secrets.GITHUB_TOKEN }}" -reviewers="${{ secrets.reviewers }}" diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 36a7ee39b790c..20ef41b6dbe79 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -51,7 +51,7 @@ jobs: - name: Installing Go uses: actions/setup-go@v4 with: - go-version-file: .github/shared-workflows/bot/go.mod + go-version: 'stable' # Run "check" subcommand on bot. - name: Checking reviewers run: cd .github/shared-workflows/bot && go run main.go -workflow=check -token="${{ steps.generate_token.outputs.token }}" -reviewers="${{ secrets.reviewers }}" diff --git a/.github/workflows/dismiss.yaml b/.github/workflows/dismiss.yaml index d8fd860df04a3..849cdf1245611 100644 --- a/.github/workflows/dismiss.yaml +++ b/.github/workflows/dismiss.yaml @@ -47,7 +47,7 @@ jobs: - name: Installing Go uses: actions/setup-go@v4 with: - go-version-file: .github/shared-workflows/bot/go.mod + go-version: 'stable' # Run "dismiss" subcommand on bot. - name: Dismiss run: cd .github/shared-workflows/bot && go run main.go -workflow=dismiss -token="${{ secrets.GITHUB_TOKEN }}" -reviewers="${{ secrets.reviewers }}" diff --git a/.github/workflows/label.yaml b/.github/workflows/label.yaml index 2ecd56779d732..bc51e77d4fc56 100644 --- a/.github/workflows/label.yaml +++ b/.github/workflows/label.yaml @@ -43,7 +43,7 @@ jobs: - name: Installing Go uses: actions/setup-go@v4 with: - go-version-file: .github/shared-workflows/bot/go.mod + go-version: 'stable' # Run "check" subcommand on bot. - name: Labeling PR run: cd .github/shared-workflows/bot && go run main.go -workflow=label -token="${{ secrets.GITHUB_TOKEN }}" -reviewers="${{ secrets.reviewers }}"