Skip to content

Commit 96bf9aa

Browse files
authored
Actions: Remove deprecated use of set-output (#271)
1 parent cd7d40e commit 96bf9aa

File tree

2 files changed

+63
-63
lines changed

2 files changed

+63
-63
lines changed

.github/workflows/builder.yml

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ jobs:
1717
architectures: ${{ steps.info.outputs.architectures }}
1818
version: ${{ steps.version.outputs.version }}
1919
steps:
20-
- name: Checkout the repository
21-
uses: actions/[email protected]
22-
with:
23-
fetch-depth: 0
20+
- name: Checkout the repository
21+
uses: actions/[email protected]
22+
with:
23+
fetch-depth: 0
2424

25-
- name: Get information
26-
id: info
27-
uses: home-assistant/actions/helpers/info@master
25+
- name: Get information
26+
id: info
27+
uses: home-assistant/actions/helpers/info@master
2828

29-
- name: Get version
30-
id: version
31-
uses: home-assistant/actions/helpers/version@master
32-
with:
33-
type: ${{ env.BUILD_TYPE }}
29+
- name: Get version
30+
id: version
31+
uses: home-assistant/actions/helpers/version@master
32+
with:
33+
type: ${{ env.BUILD_TYPE }}
3434

3535
build:
3636
name: Build ${{ matrix.arch }} base image
@@ -40,58 +40,58 @@ jobs:
4040
matrix:
4141
arch: ${{ fromJson(needs.init.outputs.architectures) }}
4242
steps:
43-
- name: Checkout the repository
44-
uses: actions/[email protected]
43+
- name: Checkout the repository
44+
uses: actions/[email protected]
4545

46-
- name: Get changed files
47-
id: changed_files
48-
if: github.event_name != 'release'
49-
uses: jitterbit/get-changed-files@v1
46+
- name: Get changed files
47+
id: changed_files
48+
if: github.event_name != 'release'
49+
uses: jitterbit/get-changed-files@v1
5050

51-
- name: Check if requirements files changed
52-
id: requirements
53-
run: |
54-
if [[ "${{ steps.changed_files.outputs.all }}" =~ requirements.txt ]]; then
55-
echo "::set-output name=changed::true"
56-
fi
51+
- name: Check if requirements files changed
52+
id: requirements
53+
run: |
54+
if [[ "${{ steps.changed_files.outputs.all }}" =~ requirements.txt ]]; then
55+
echo "changed=true" >> $GITHUB_OUTPUT
56+
fi
5757
58-
- name: Build wheels
59-
uses: home-assistant/[email protected]
60-
if: steps.requirements.outputs.changed == 'true'
61-
with:
62-
tag: musllinux_1_2
63-
abi: cp310
64-
arch: ${{ matrix.arch }}
65-
wheels-key: ${{ secrets.WHEELS_KEY }}
66-
apk: "mariadb-dev;postgresql-dev;libffi-dev"
67-
requirements: "requirements.txt"
68-
69-
- name: Login to DockerHub
70-
if: github.event_name == 'release'
71-
uses: docker/[email protected]
72-
with:
73-
username: ${{ secrets.DOCKERHUB_USERNAME }}
74-
password: ${{ secrets.DOCKERHUB_TOKEN }}
75-
76-
- name: Login to GitHub Container Registry
77-
if: github.event_name == 'release'
78-
uses: docker/[email protected]
79-
with:
80-
registry: ghcr.io
81-
username: ${{ github.repository_owner }}
82-
password: ${{ secrets.GITHUB_TOKEN }}
58+
- name: Build wheels
59+
uses: home-assistant/[email protected]
60+
if: steps.requirements.outputs.changed == 'true'
61+
with:
62+
tag: musllinux_1_2
63+
abi: cp310
64+
arch: ${{ matrix.arch }}
65+
wheels-key: ${{ secrets.WHEELS_KEY }}
66+
apk: "mariadb-dev;postgresql-dev;libffi-dev"
67+
requirements: "requirements.txt"
8368

84-
- name: Set build arguments
85-
if: github.event_name != 'release'
86-
run: echo "BUILD_ARGS=--test" >> $GITHUB_ENV
69+
- name: Login to DockerHub
70+
if: github.event_name == 'release'
71+
uses: docker/[email protected]
72+
with:
73+
username: ${{ secrets.DOCKERHUB_USERNAME }}
74+
password: ${{ secrets.DOCKERHUB_TOKEN }}
8775

88-
- name: Build base image
89-
uses: home-assistant/[email protected]
90-
with:
91-
args: |
92-
$BUILD_ARGS \
93-
--${{ matrix.arch }} \
94-
--target /data \
95-
--generic ${{ needs.init.outputs.version }}
96-
env:
97-
CAS_API_KEY: ${{ secrets.CAS_TOKEN }}
76+
- name: Login to GitHub Container Registry
77+
if: github.event_name == 'release'
78+
uses: docker/[email protected]
79+
with:
80+
registry: ghcr.io
81+
username: ${{ github.repository_owner }}
82+
password: ${{ secrets.GITHUB_TOKEN }}
83+
84+
- name: Set build arguments
85+
if: github.event_name != 'release'
86+
run: echo "BUILD_ARGS=--test" >> $GITHUB_ENV
87+
88+
- name: Build base image
89+
uses: home-assistant/[email protected]
90+
with:
91+
args: |
92+
$BUILD_ARGS \
93+
--${{ matrix.arch }} \
94+
--target /data \
95+
--generic ${{ needs.init.outputs.version }}
96+
env:
97+
CAS_API_KEY: ${{ secrets.CAS_TOKEN }}

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
fi
3131
echo Current version: $latest
3232
echo New target version: $datepre.$newpost
33-
echo "::set-output name=version::$datepre.$newpost"
33+
echo "version::$datepre.$newpost" >> $GITHUB_OUTPUT
3434
- name: Run Release Drafter
3535
uses: release-drafter/release-drafter@v5
3636
with:

0 commit comments

Comments
 (0)