Skip to content

Commit

Permalink
update workflows to choose the right go version
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed Aug 7, 2024
1 parent 30f469a commit 565e44a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/sync_sdk_with_new_api_spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,19 @@ jobs:
sync:
strategy:
matrix:
go-version: [1.20.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"

- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout Go Code
uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v3
with:
go-version-file: "./go.mod"
- name: Get next API Spec Version
id: spec_versions
run: |
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ jobs:
test:
strategy:
matrix:
go-version: [1.20.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v3
with:
go-version-file: "./go.mod"
- name: Verify Patches
run: make patch
- name: Generate
Expand Down

0 comments on commit 565e44a

Please sign in to comment.