Skip to content

Commit 8078ae9

Browse files
authored
Replace deprecated command with environment file (#401)
1 parent 203289f commit 8078ae9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/update-images.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
echo "BASE_SHA=${BASE_SHA}"
4848
if [ -z "${BASE_SHA}" ]; then
4949
# we couldn't find any existing robot commit, just rebuild everything
50-
echo "::set-output name=modified::true"
50+
echo "modified=true" >> $GITHUB_OUTPUT
5151
exit 0
5252
fi
5353
CHANGED_FILES="$(git diff --name-only ${BASE_SHA} ${{ github.sha }})"
@@ -57,7 +57,7 @@ jobs:
5757
for watched_path in "${PATHS[@]}"; do
5858
if [[ $changed_file == $watched_path ]]; then
5959
echo "modified=true: ${changed_file} matches ${watched_path}"
60-
echo "::set-output name=modified::true"
60+
echo "modified=true" >> $GITHUB_OUTPUT
6161
exit 0
6262
fi
6363
done
@@ -66,7 +66,7 @@ jobs:
6666
- id: set-modified
6767
name: Set modified
6868
run: |
69-
echo "::set-output name=${{ matrix.image }}-modified::${{ steps.modified.outputs.modified }}"
69+
echo "${{ matrix.image }}-modified=${{ steps.modified.outputs.modified }}" >> $GITHUB_OUTPUT
7070
7171
7272
- name: Build image
@@ -106,7 +106,7 @@ jobs:
106106
IMAGE_GCR="gcr.io/${{ secrets.GCR_PROJECT }}/${{ matrix.image }}"
107107
docker tag "${{ matrix.image }}" "$IMAGE_GCR"
108108
DIGEST="$(docker push "$IMAGE_GCR" | grep 'digest: ' | sed 's/.*\(sha256:[^ ]*\).*/\1/')"
109-
echo "::set-output name=${{ matrix.image }}-digest::${DIGEST}"
109+
echo "${{ matrix.image }}-digest=${DIGEST}" >> $GITHUB_OUTPUT
110110
111111
build-operator:
112112
runs-on: ubuntu-22.04
@@ -130,7 +130,7 @@ jobs:
130130
echo "BASE_SHA=${BASE_SHA}"
131131
if [ -z "${BASE_SHA}" ]; then
132132
# we couldn't find any existing robot commit, just rebuild everything
133-
echo "::set-output name=modified::true"
133+
echo "modified=true" >> $GITHUB_OUTPUT
134134
exit 0
135135
fi
136136
CHANGED_FILES="$(git diff --name-only ${BASE_SHA} ${{ github.sha }})"
@@ -140,7 +140,7 @@ jobs:
140140
for watched_path in "${PATHS[@]}"; do
141141
if [[ $changed_file == $watched_path ]]; then
142142
echo "modified=true: ${changed_file} matches ${watched_path}"
143-
echo "::set-output name=modified::true"
143+
echo "modified=true" >> $GITHUB_OUTPUT
144144
exit 0
145145
fi
146146
done
@@ -149,7 +149,7 @@ jobs:
149149
- id: set-modified
150150
name: Set modified
151151
run: |
152-
echo "::set-output name=kctf-operator-modified::${{ steps.modified.outputs.modified }}"
152+
echo "kctf-operator-modified=${{ steps.modified.outputs.modified }}" >> $GITHUB_OUTPUT
153153
154154
- name: 'Set up Cloud SDK auth'
155155
uses: 'google-github-actions/auth@v0'
@@ -202,7 +202,7 @@ jobs:
202202
IMAGE_GCR="gcr.io/${{ secrets.GCR_PROJECT }}/kctf-operator"
203203
docker tag "kctf-operator" "$IMAGE_GCR"
204204
DIGEST="$(docker push "$IMAGE_GCR" | grep 'digest: ' | sed 's/.*\(sha256:[^ ]*\).*/\1/')"
205-
echo "::set-output name=kctf-operator-digest::${DIGEST}"
205+
echo "kctf-operator-digest=${DIGEST}" >> $GITHUB_OUTPUT
206206
207207
update-image-and-commit:
208208
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)