Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
update all actions to use actions/checkout@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
horacioh committed Mar 6, 2024
1 parent 25ea371 commit ad6762f
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 17 deletions.
41 changes: 27 additions & 14 deletions .github/workflows/desktop-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ permissions:

on:
push:
# branches:
# - "release/*"
branches:
- "release/*"
tags:
- "*.*.*"

Expand All @@ -23,21 +23,34 @@ jobs:
outputs:
version: ${{ steps.vars.outputs.version }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Get Tag
- name: Get Latest Release
id: get_latest_release
uses: pozetroninc/github-action-get-latest-release@master
with:
repository: ${{ github.repository }}
# excludes: rc, alpha, beta # Optional. Exclude keywords like rc, alpha, beta releases.

- name: Bump possible release candidate version
id: bump_version
uses: christian-draeger/[email protected]
with:
current-version: ${{ steps.get_latest_release.outputs.release }}
version-fragment: "rc"
- name: Check out the branch or tag
id: vars
run: |
echo "version=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
# echo "version=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
# if [[ $GITHUB_REF =~ ^refs/tags/ ]]; then
# VERSION=${{ github.ref_name }}
# elif [[ $GITHUB_REF =~ ^refs/heads/release/.* ]]; then
# VERSION=${GITHUB_REF#refs/heads/release/}
# else
# VERSION=0.0.1
# fi
# echo "version=$VERSION" >> "$GITHUB_OUTPUT"
if [[ $GITHUB_REF =~ ^refs/tags/ ]]; then
VERSION=${{ github.ref_name }}
elif [[ $GITHUB_REF =~ ^refs/heads/release/.* ]]; then
VERSION=${{ steps.bump_version.outputs.next-version }}
else
VERSION=0.0.1
fi
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
build-binaries:
name: Build ${{ matrix.config.os }} @ ${{ matrix.config.arch }}
Expand Down Expand Up @@ -162,7 +175,7 @@ jobs:
needs: [get-version, build-binaries]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: "1.20"
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: golangci/golangci-lint-action@v3
with:
version: latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/new-rc-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Get Latest Release
id: get_latest_release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
test-go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v3
with:
Expand Down

0 comments on commit ad6762f

Please sign in to comment.