workflows/spdx: fix actionlint errors
This commit is contained in:
parent
4e20760a76
commit
b14d462481
6
.github/workflows/spdx.yml
vendored
6
.github/workflows/spdx.yml
vendored
@ -41,7 +41,7 @@ jobs:
|
|||||||
git fetch origin
|
git fetch origin
|
||||||
|
|
||||||
BRANCH="spdx-update"
|
BRANCH="spdx-update"
|
||||||
echo "branch=${BRANCH}" >> $GITHUB_OUTPUT
|
echo "branch=${BRANCH}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
if git ls-remote --exit-code --heads origin "${BRANCH}"
|
if git ls-remote --exit-code --heads origin "${BRANCH}"
|
||||||
then
|
then
|
||||||
@ -55,11 +55,11 @@ jobs:
|
|||||||
then
|
then
|
||||||
git add "Library/Homebrew/data/spdx"
|
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)."
|
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")"
|
PULL_REQUEST_STATE="$(gh pr view --json=state | jq -r ".state")"
|
||||||
if [[ "${PULL_REQUEST_STATE}" != "OPEN" ]]
|
if [[ "${PULL_REQUEST_STATE}" != "OPEN" ]]
|
||||||
then
|
then
|
||||||
echo "pull_request=true" >> $GITHUB_OUTPUT
|
echo "pull_request=true" >> "$GITHUB_OUTPUT"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user