Skip to content

Commit

Permalink
ci: Use GITHUB_OUTPUT envvar instead of set-output command (#693)
Browse files Browse the repository at this point in the history
* ci: Use GITHUB_OUTPUT envvar instead of set-output command

Signed-off-by: Arun <arun@arun.blog>

* Quote envvar to match documentation

Signed-off-by: Arun <arun@arun.blog>

---------

Signed-off-by: Arun <arun@arun.blog>
  • Loading branch information
arunsathiya authored Feb 18, 2024
1 parent 50ba0bb commit 114790f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-beta-release.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]+-beta[0-9]+'
- 'v[0-9]+\.[0-9]+\.[0-9]+-beta[0-9]+'

name: Publish Trickster Beta Release to Drafts

Expand All @@ -12,19 +12,19 @@ jobs:
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
run: echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
#
- name: Get bare tag
id: baretag
run: echo "::set-output name=baretag::$(echo ${{ github.ref }} | cut -b 12-)"
run: echo "baretag=$(echo ${{ github.ref }} | cut -b 12-)" >> "$GITHUB_OUTPUT"
#
- name: Checkout code
uses: actions/checkout@v2
#
- name: install golang
uses: actions/setup-go@v2
with:
go-version: '1.19'
go-version: "1.19"
- name: Build project
run: |
TAGVER=${{ steps.baretag.outputs.baretag }} make release
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-release-candidate.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+'
- 'v[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+'

name: Publish Trickster Release Candidate to Drafts

Expand All @@ -12,19 +12,19 @@ jobs:
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
run: echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
#
- name: Get bare tag
id: baretag
run: echo "::set-output name=baretag::$(echo ${{ github.ref }} | cut -b 12-)"
run: echo "baretag=$(echo ${{ github.ref }} | cut -b 12-)" >> "$GITHUB_OUTPUT"
#
- name: Checkout code
uses: actions/checkout@v2
#
- name: install golang
uses: actions/setup-go@v2
with:
go-version: '1.19'
go-version: "1.19"
#
- name: Build project
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]+'
- 'v[0-9]+\.[0-9]+\.[0-9]+'

name: Publish Trickster Release to Drafts

Expand All @@ -12,19 +12,19 @@ jobs:
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
run: echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
#
- name: Get bare tag
id: baretag
run: echo "::set-output name=baretag::$(echo ${{ github.ref }} | cut -b 12-)"
run: echo "baretag=$(echo ${{ github.ref }} | cut -b 12-)" >> "$GITHUB_OUTPUT"
#
- name: Checkout code
uses: actions/checkout@v2
#
- name: install golang
uses: actions/setup-go@v2
with:
go-version: '1.19'
go-version: "1.19"
#
- name: Build project
run: |
Expand Down

0 comments on commit 114790f

Please sign in to comment.