-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Use GITHUB_OUTPUT envvar instead of set-output command
- Loading branch information
1 parent
7570be4
commit b785791
Showing
1 changed file
with
16 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
run: | | ||
pattern="^Release v[0-9]+.[0-9]+.[0-9]+ #(minor|major|patch)$" | ||
if [[ "${{ github.event.head_commit.message }}" =~ ${pattern} ]]; then | ||
echo ::set-output name=match::true | ||
echo match=true >> $GITHUB_OUTPUT | ||
fi | ||
create-tag: | ||
runs-on: ubuntu-latest | ||
|
@@ -28,42 +28,37 @@ jobs: | |
outputs: | ||
new_tag: ${{ steps.tagger.outputs.new_tag }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: '0' | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: "0" | ||
|
||
- name: Bump version and push tag | ||
id: tagger | ||
uses: anothrNick/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
WITH_V: true | ||
DEFAULT_BUMP: "none" | ||
- name: Bump version and push tag | ||
id: tagger | ||
uses: anothrNick/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
WITH_V: true | ||
DEFAULT_BUMP: "none" | ||
|
||
goreleaser: | ||
runs-on: ubuntu-latest | ||
needs: create-tag | ||
steps: | ||
- | ||
name: Checkout | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- | ||
name: Unshallow | ||
- name: Unshallow | ||
run: git fetch --prune --unshallow | ||
- | ||
name: Set up Go | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: "1.20" | ||
- | ||
name: Import GPG key | ||
- name: Import GPG key | ||
id: import_gpg | ||
uses: paultyng/[email protected] | ||
env: | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
PASSPHRASE: ${{ secrets.PASSPHRASE }} | ||
- | ||
name: Run GoReleaser | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v4 | ||
with: | ||
version: latest | ||
|