Skip to content

Commit

Permalink
Use updated method of setting output
Browse files Browse the repository at this point in the history
  • Loading branch information
lildude committed Mar 30, 2024
1 parent 6f17f1f commit 58eab22
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
if [[ -n ${changed} ]]; then
echo "A monitored file changed.";
echo "::set-output name=changed::true";
echo "changed=true" >> $GITHUB_OUTPUT
else
echo "No monitored files changed.";
fi
Expand All @@ -68,14 +68,14 @@ jobs:
id: check
run: |
if [[ "${{ steps.info.outputs.architectures }}" =~ ${{ matrix.arch }} ]]; then
echo "::set-output name=build_arch::true";
echo "::set-output name=image::$(echo ${{ steps.info.outputs.image }} | cut -d'/' -f3)";
echo "build_arch=true" >> $GITHUB_OUTPUT
echo "image=$(echo ${{ steps.info.outputs.image }} | cut -d'/' -f3)" >> $GITHUB_OUTPUT
if [[ -z "${{ github.head_ref }}" ]] && [[ "${{ github.event_name }}" == "push" ]]; then
echo "BUILD_ARGS=" >> $GITHUB_ENV;
fi
else
echo "${{ matrix.arch }} is not a valid arch for this add-on, skipping build";
echo "::set-output name=build_arch::false";
echo "build_arch=false" >> $GITHUB_OUTPUT
fi
- name: Login to GitHub Container Registry
Expand Down

0 comments on commit 58eab22

Please sign in to comment.