Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
The remote repository `origin` needs to be fetched explictly
with actions/checkout@v2 and later. This was not the case
with actions/checkout@v1.
  • Loading branch information
DimitriPapadopoulos committed Aug 31, 2024
1 parent cb3864e commit fcc41e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/bench_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
GOBIN: /home/runner/go
steps:
- name: Set up Go 1.22
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.22
id: go

- name: Check out code
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Get dependencies
run: |
Expand All @@ -27,6 +27,7 @@ jobs:
git log -1 --format="%H"
go test -bench=. -benchmem -benchtime=10x -count=7 > $HOME/new.txt
git reset --hard HEAD
git fetch -a
git checkout $GITHUB_BASE_REF
echo "Base Commit:"
git log -1 --format="%H"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/bench_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
GOBIN: /home/runner/go
steps:
- name: Set up Go 1.22
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.22
id: go

- name: Check out code
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Get dependencies
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
steps:

- name: Set up Go 1.22
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.22
id: go

- name: Check out code
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Get dependencies
run: |
Expand Down

0 comments on commit fcc41e6

Please sign in to comment.