Skip to content

Commit ab8032b

Browse files
Replace set-output with recommended env output (#234)
* Replace set-output with recommended env output * Fix linter * Update CHANGELOG.md
1 parent 48530cd commit ab8032b

File tree

4 files changed

+18
-17
lines changed

4 files changed

+18
-17
lines changed

.github/workflows/builder.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ jobs:
145145
ARGS="${ARGS}-${GOMIPSLE}"
146146
fi
147147
make ${ARGS}
148-
echo "::set-output name=filename::${{ env.PRODUCT }}-${ARGS}"
148+
echo "filename=${{ env.PRODUCT }}-${ARGS}" >> $GITHUB_OUTPUT
149149
150150
- name: Upload binary artifacts
151151
uses: actions/upload-artifact@v3
@@ -200,7 +200,7 @@ jobs:
200200
PKG_ARCH="${TARGET//v8}"
201201
PKG_ARCH="${PKG_ARCH//32}"
202202
make debian DEB_IMG_ARCH=${TARGET} PKG_ARCH=${PKG_ARCH}
203-
echo "::set-output name=filename::${{ env.PRODUCT }}-deb-${PKG_ARCH}"
203+
echo "filename=${{ env.PRODUCT }}-deb-${PKG_ARCH}" >> $GITHUB_OUTPUT
204204
205205
- name: Upload archived binary
206206
uses: actions/upload-artifact@v3

.github/workflows/docker.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ on:
99
- cron: '0 0 * * *'
1010
push:
1111
tags:
12-
- 'v*'
12+
- "v*"
1313
branches:
1414
- 'main'
1515
- 'develop'
1616
paths-ignore:
17-
- '**.md'
17+
- "**.md"
1818
- 'snapcraft.yaml'
1919
- '.github/**'
2020
- '!.github/workflows/docker.yml'
2121
pull_request:
2222
branches:
2323
- 'main'
2424
paths-ignore:
25-
- '**.md'
25+
- "**.md"
2626
- 'snapcraft.yaml'
2727
- '.github/**'
2828
- '!.github/workflows/docker.yml'
@@ -64,11 +64,11 @@ jobs:
6464
DOCKER_IMAGE_VERSION=edge
6565
fi
6666
TAGS="${TAGS},${DOCKER_HOST}/${DOCKER_IMAGE_SCOPE}:${DOCKER_IMAGE_VERSION},${GHCR_HOST}/${DOCKER_IMAGE_SCOPE}:${DOCKER_IMAGE_VERSION}"
67-
echo ::set-output name=tags::${TAGS}
68-
echo ::set-output name=version::${DOCKER_IMAGE_VERSION}
69-
echo ::set-output name=docker::${DOCKER_HOST}/${DOCKER_IMAGE_SCOPE}
70-
echo ::set-output name=ghcr::${GHCR_HOST}/${DOCKER_IMAGE_SCOPE}
71-
echo ::set-output name=images::${DOCKER_HOST}/${DOCKER_IMAGE_SCOPE},${GHCR_HOST}/${DOCKER_IMAGE_SCOPE}
67+
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
68+
echo "version=${DOCKER_IMAGE_VERSION}" >> $GITHUB_OUTPUT
69+
echo "docker=${DOCKER_HOST}/${DOCKER_IMAGE_SCOPE}" >> $GITHUB_OUTPUT
70+
echo "ghcr=${GHCR_HOST}/${DOCKER_IMAGE_SCOPE}" >> $GITHUB_OUTPUT
71+
echo "images=${DOCKER_HOST}/${DOCKER_IMAGE_SCOPE},${GHCR_HOST}/${DOCKER_IMAGE_SCOPE}" >> $GITHUB_OUTPUT
7272
7373
- name: Set up QEMU
7474
uses: docker/setup-qemu-action@8b122486cedac8393e77aa9734c3528886e4a1a8 # v2.0.0
@@ -191,10 +191,10 @@ jobs:
191191
DOCKER_IMAGE_VERSION=edge
192192
fi
193193
TAGS="${TAGS},${GHCR_HOST}/${DOCKER_IMAGE_SCOPE}:${DOCKER_IMAGE_VERSION}"
194-
echo ::set-output name=tags::${TAGS}
195-
echo ::set-output name=version::${DOCKER_IMAGE_VERSION}
196-
echo ::set-output name=ghcr::${GHCR_HOST}/${DOCKER_IMAGE_SCOPE}
197-
echo ::set-output name=images::${GHCR_HOST}/${DOCKER_IMAGE_SCOPE}
194+
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
195+
echo "version=${DOCKER_IMAGE_VERSION}" >> $GITHUB_OUTPUT
196+
echo "ghcr=${GHCR_HOST}/${DOCKER_IMAGE_SCOPE}" >> $GITHUB_OUTPUT
197+
echo "images=${GHCR_HOST}/${DOCKER_IMAGE_SCOPE}" >> $GITHUB_OUTPUT
198198
199199
- name: Set up QEMU
200200
uses: docker/setup-qemu-action@8b122486cedac8393e77aa9734c3528886e4a1a8 # v2.0.0

.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
ARGS="${ARGS}-${GOMIPSLE}"
106106
fi
107107
make ${ARGS}
108-
echo "::set-output name=args::${ARGS}"
108+
echo "args=${ARGS}" >> $GITHUB_OUTPUT
109109
110110
- name: Archive binary
111111
run: make TARGET=${{ steps.builder.outputs.args }} releases
@@ -225,7 +225,7 @@ jobs:
225225
run: |
226226
version=$(git describe --tags `git rev-list --tags --max-count=1` | sed -e 's/v//g')
227227
sed -i "s/version: 'git'/version: '${version}'/g" snapcraft.yaml
228-
echo "::set-output name=version::${version}"
228+
echo "version=${version}" >> $GITHUB_OUTPUT
229229
230230
- id: build
231231
name: Build Snap
@@ -302,7 +302,7 @@ jobs:
302302
digest=$(find *${{ env.PRODUCT }}* -type f -exec sha256sum {} +)
303303
output="${digest//$'%'/%25}"
304304
output="${output//$'\n'/%0A}"
305-
echo "::set-output name=result::$output"
305+
echo "result=${output}" >> $GITHUB_OUTPUT
306306
# Write digest to file
307307
version=${{ needs.snapcraft.outputs.version }}
308308
echo "${digest}" > "${{ env.PRODUCT }}-${version}-checksums.txt"

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changed
1111
- Sign images using cosign
12+
- Replace set-output with recommended env output ([#234](https://github.com/wabarc/wayback/pull/234))
1213

1314
## [0.18.1] - 2022-10-30
1415

0 commit comments

Comments
 (0)