Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix gomod tidy workflow not triggering the rest of CI tasks #2706

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .github/workflows/go-mod-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,20 @@ jobs:
go-version: "1.20"
id: go

- name: Generate token # generate a token to trigger the rest of the CI tasks... https://github.com/tibdex/github-app-token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}

- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}

token: ${{ steps.generate_token.outputs.token }}

- name: Run go mod tidy script
run: ./scripts/go_mod_tidy.sh

Expand All @@ -29,5 +37,5 @@ jobs:
with:
author_name: GitHub Actions
committer_email: [email protected]
message: 'go mod tidy'
add: '.'
message: "go mod tidy"
add: "."
Loading