Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Use GITHUB_OUTPUT envvar instead of set-output command #693

Merged
merged 2 commits into from
Feb 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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