Skip to content

Commit

Permalink
ci: fix GITHUB_OUTPUT
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarcoatl committed Oct 17, 2023
1 parent 0f9fcf7 commit 9fac89d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:

- name: Get Homebrew/core formulae
run: |
set -x
formulae=(
"bzip2"
"unzip"
Expand All @@ -21,10 +22,11 @@ jobs:
for formula in "${formulae[@]}"; do
curl -s -o "Formula/$formula.rb" "https://raw.githubusercontent.com/Homebrew/homebrew-core/HEAD/Formula/${formula:0:1}/$formula.rb"
done
set +x
- id: git-diff
run: |
git status --porcelain | grep -E '^\s*[A?M]' &>/dev/null && echo "diff=true" || echo "diff=false" >> $GITHUB_OUTPUT
git status --porcelain | grep -E '^\s*[A?M]' &>/dev/null && echo "diff=true" || echo "diff=false" >> "$GITHUB_OUTPUT"
- if: ${{ success() && steps.git-diff.outputs.diff == 'true' }}
uses: coatl-dev/actions/gpg-import@coatl
Expand Down

0 comments on commit 9fac89d

Please sign in to comment.