Skip to content

Commit

Permalink
fix(.github): avoid using deprecated ::set-output (ooni#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone authored and cyBerta committed Aug 4, 2023
1 parent 6bc3e8e commit 4214d24
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/alltests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- name: Get GOVERSION content
id: goversion
run: echo ::set-output name=version::$(cat GOVERSION)
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT"

- uses: magnetikonline/action-golang-cache@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- name: Get GOVERSION content
id: goversion
run: echo ::set-output name=version::$(cat GOVERSION)
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT"
- uses: magnetikonline/action-golang-cache@v4
with:
go-version: "${{ steps.goversion.outputs.version }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- name: Get GOVERSION content
id: goversion
run: echo ::set-output name=version::$(cat GOVERSION)
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT"

- uses: magnetikonline/action-golang-cache@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- name: Get GOVERSION content
id: goversion
run: echo ::set-output name=version::$(cat GOVERSION)
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT"

- uses: magnetikonline/action-golang-cache@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gosec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- name: Get GOVERSION content
id: goversion
run: echo ::set-output name=version::$(cat GOVERSION)
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT"

- uses: magnetikonline/action-golang-cache@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- name: Get GOVERSION content
id: goversion
run: echo ::set-output name=version::$(cat GOVERSION)
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT"
- uses: magnetikonline/action-golang-cache@v4
with:
go-version: "${{ steps.goversion.outputs.version }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jafar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- name: Get GOVERSION content
id: goversion
run: echo ::set-output name=version::$(cat GOVERSION)
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT"

- uses: magnetikonline/action-golang-cache@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/libtorlinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- name: Get GOVERSION content
id: goversion
run: echo ::set-output name=version::$(cat GOVERSION)
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT"

- uses: magnetikonline/action-golang-cache@v4
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Get GOVERSION content
id: goversion
run: echo ::set-output name=version::$(cat GOVERSION)
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT"
- uses: magnetikonline/action-golang-cache@v4
with:
go-version: "${{ steps.goversion.outputs.version }}"
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
- name: Get GOVERSION content
id: goversion
run: echo ::set-output name=version::$(cat GOVERSION)
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT"
- uses: magnetikonline/action-golang-cache@v4
with:
go-version: "${{ steps.goversion.outputs.version }}"
Expand Down Expand Up @@ -131,7 +131,7 @@ jobs:

- name: Get GOVERSION content
id: goversion
run: echo ::set-output name=version::$(cat GOVERSION)
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT"
- uses: magnetikonline/action-golang-cache@v4
with:
go-version: "${{ steps.goversion.outputs.version }}"
Expand Down Expand Up @@ -189,7 +189,7 @@ jobs:
- name: Get GOVERSION content
id: goversion
run: echo ::set-output name=version::$(cat GOVERSION)
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT"
- uses: magnetikonline/action-golang-cache@v4
with:
go-version: "${{ steps.goversion.outputs.version }}"
Expand Down Expand Up @@ -253,7 +253,7 @@ jobs:
- name: Get GOVERSION content
id: goversion
run: echo ::set-output name=version::$(cat GOVERSION)
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT"
- uses: magnetikonline/action-golang-cache@v4
with:
go-version: "${{ steps.goversion.outputs.version }}"
Expand Down Expand Up @@ -317,7 +317,7 @@ jobs:
- name: Get GOVERSION content
id: goversion
run: echo ::set-output name=version::$(cat GOVERSION)
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT"
- uses: magnetikonline/action-golang-cache@v4
with:
go-version: "${{ steps.goversion.outputs.version }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- name: Get GOVERSION content
id: goversion
run: echo ::set-output name=version::$(cat GOVERSION)
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT"
- uses: magnetikonline/action-golang-cache@v4
with:
go-version: "${{ steps.goversion.outputs.version }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/netxlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- name: Get GOVERSION content
id: goversion
run: echo ::set-output name=version::$(cat GOVERSION)
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT"
shell: bash

- uses: magnetikonline/action-golang-cache@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/oohelperd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- name: Get GOVERSION content
id: goversion
run: echo ::set-output name=version::$(cat GOVERSION)
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT"

- uses: magnetikonline/action-golang-cache@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tarball.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- name: Get GOVERSION content
id: goversion
run: echo ::set-output name=version::$(cat GOVERSION)
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT"

- uses: magnetikonline/action-golang-cache@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- name: Get GOVERSION content
id: goversion
run: echo ::set-output name=version::$(cat GOVERSION)
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT"
- uses: magnetikonline/action-golang-cache@v4
with:
go-version: "${{ steps.goversion.outputs.version }}"
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/ghgen/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func newStepCheckout(w io.Writer) {
func newStepSetupGo(w io.Writer, cacheName string) {
mustFprintf(w, " - name: Get GOVERSION content\n")
mustFprintf(w, " id: goversion\n")
mustFprintf(w, " run: echo ::set-output name=version::$(cat GOVERSION)\n")
mustFprintf(w, " run: echo \"version=$(cat GOVERSION)\" >> \"$GITHUB_OUTPUT\"\n")
mustFprintf(w, " - uses: magnetikonline/action-golang-cache@v4\n")
mustFprintf(w, " with:\n")
mustFprintf(w, " go-version: \"${{ steps.goversion.outputs.version }}\"\n")
Expand Down

0 comments on commit 4214d24

Please sign in to comment.