Skip to content

Commit

Permalink
.github/workflows: fix wiki.yml
Browse files Browse the repository at this point in the history
wiki.yml workflow checks out both vscode-go and vscode-go.wiki repos.
This confuses actions/setup-go@v3 caching mechanism and we ended up
getting errors like

```
Dependencies file is not found in /home/runner/work/vscode-go/vscode-go.
Supported file pattern: go.sum
```
Tweak the configuration to search for go.sum files.

And trigger the workflow if this workflow file on master is changed.

Change-Id: I8762f1f21d1180b605431f400ead3cfe37bebf83

Change-Id: I8762f1f21d1180b605431f400ead3cfe37bebf83
GitHub-Last-Rev: 7984e1e
GitHub-Pull-Request: golang#2386
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/420634
Reviewed-by: Jamal Carvalho <[email protected]>
Reviewed-by: Suzy Mueller <[email protected]>
  • Loading branch information
hyangah committed Aug 3, 2022
1 parent 84fe4e7 commit e4a94d2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.18'
go-version: '1.19'
check-latest: true
cache: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-long-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
version: ['stable', 'insiders']
go: ['1.16', '1.17', '1.18', '1.19.0-rc.2']
go: ['1.16', '1.17', '1.18', '1.19']

steps:
- name: Clone repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-long.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest] # TODO: reenable macos-latest
version: ['stable']
go: ['1.16', '1.17', '1.18', '1.19.0-rc.2']
go: ['1.16', '1.17', '1.18', '1.19']

steps:
- name: Clone repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.19.0-rc.2'
go-version: '1.19.0'
check-latest: true
cache: true

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/wiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches: [ master ]
paths:
- 'docs/**'
- '.github/workflows/wiki.yml'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
permissions:
Expand Down Expand Up @@ -34,9 +35,11 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.18'
go-version: '1.19'
check-latest: true
cache: true
cache-dependency-path: '**/go.sum'

- name: Push to wiki
run: |
cd vscode-go
Expand Down

0 comments on commit e4a94d2

Please sign in to comment.