Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
arnested committed Feb 16, 2024
1 parent 9c23b1d commit 76b730e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/go-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,22 @@ jobs:
patch-level: true
unstable: true
- name: Get draft release notes URL
if: steps.go-version-unstable.outputs.latest == steps.go-version-stable.outputs.latest
if: steps.go-version-unstable.outputs.latest != steps.go-version-stable.outputs.latest
id: release-notes
run: |
# shellcheck disable=SC2086
echo "URL=https://tip.golang.org/doc/go$(sed -E 's/([0-9]+\.[0-9]+).*/\1/' <<< '${{ steps.go-version-unstable.outputs.latest }}')" >> $GITHUB_OUTPUT
- name: Setup Go ${{ steps.go-version-unstable.outputs.latest }}
if: steps.go-version-unstable.outputs.latest == steps.go-version-stable.outputs.latest
if: steps.go-version-unstable.outputs.latest != steps.go-version-stable.outputs.latest
uses: WillAbides/[email protected]
with:
go-version: ${{ steps.go-version-unstable.outputs.latest }}
- run: go mod edit -go ${{ steps.go-version-unstable.outputs.latest }}
if: steps.go-version-unstable.outputs.latest == steps.go-version-stable.outputs.latest
if: steps.go-version-unstable.outputs.latest != steps.go-version-stable.outputs.latest
- run: git diff
if: steps.go-version-unstable.outputs.latest == steps.go-version-stable.outputs.latest
if: steps.go-version-unstable.outputs.latest != steps.go-version-stable.outputs.latest
- name: "Create pull request"
if: steps.go-version-unstable.outputs.latest == steps.go-version-stable.outputs.latest
if: steps.go-version-unstable.outputs.latest != steps.go-version-stable.outputs.latest
uses: peter-evans/create-pull-request@v5
with:
draft: true
Expand Down

0 comments on commit 76b730e

Please sign in to comment.