workflows/spdx: fix actionlint errors

This commit is contained in:
Carlo Cabrera 2023-04-11 00:03:57 +08:00
parent 4e20760a76
commit b14d462481
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -41,7 +41,7 @@ jobs:
git fetch origin
BRANCH="spdx-update"
echo "branch=${BRANCH}" >> $GITHUB_OUTPUT
echo "branch=${BRANCH}" >> "$GITHUB_OUTPUT"
if git ls-remote --exit-code --heads origin "${BRANCH}"
then
@ -55,11 +55,11 @@ jobs:
then
git add "Library/Homebrew/data/spdx"
git commit -m "spdx: update license data." -m "Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/spdx.yml)."
echo "committed=true" >> $GITHUB_OUTPUT
echo "committed=true" >> "$GITHUB_OUTPUT"
PULL_REQUEST_STATE="$(gh pr view --json=state | jq -r ".state")"
if [[ "${PULL_REQUEST_STATE}" != "OPEN" ]]
then
echo "pull_request=true" >> $GITHUB_OUTPUT
echo "pull_request=true" >> "$GITHUB_OUTPUT"
fi
fi