Skip to content

Commit

Permalink
switch to new way of setting github output
Browse files Browse the repository at this point in the history
  • Loading branch information
FarisZR committed May 24, 2023
1 parent ef5f2bf commit a9221f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Check for modified files
id: git-check
run: echo ::set-output name=caddy-out-of-date::$([ -z "`git status --porcelain`" ] && echo "false" || echo "true")
run: echo "{caddy-out-of-date}={$([ -z "`git status --porcelain`" ] && echo "false" || echo "true"}"

check-for-plugin-updates:
runs-on: ubuntu-latest
Expand All @@ -48,8 +48,8 @@ jobs:
if: ${{ needs.check-for-new-caddy-release.outputs.caddy == 'true' }}
id: caddy-check
run: |
echo ::set-output name=desec-out-of-date::true
echo ::set-output name=cloudflare-out-of-date::true
echo "{desec-out-of-date}={true}" >> $GITHUB_OUTPUT
echo "{cloudflare-out-of-date}={true}" >> $GITHUB_OUTPUT
- name: Pull desec plugin remote commits
if: ${{ needs.check-for-new-caddy-release.outputs.caddy == 'false' }}
Expand Down
2 changes: 1 addition & 1 deletion commit-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local="$2"
remote="$3"
# if the files match, then it means the build is up-to-date, so no need to rebuild.
if cmp -s "$local" "$remote"; then
echo "::set-output name=$4::false"
echo "{$4}={false}" >> $GITHUB_OUTPUT
else
echo "{$4}={true}" >> $GITHUB_OUTPUT
fi

0 comments on commit a9221f6

Please sign in to comment.