Skip to content

Commit

Permalink
Merge pull request #2706 from jorgemmsilva/chore/fix-go-mod-tidy-work…
Browse files Browse the repository at this point in the history
…flow

chore: fix gomod tidy workflow not triggering the rest of CI tasks
  • Loading branch information
jorgemmsilva authored Jul 12, 2023
2 parents c39c60a + 724fb3b commit b644faf
Showing 1 changed file with 12 additions and 4 deletions.
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: "."

0 comments on commit b644faf

Please sign in to comment.