workflows/sponsors-*: fix actionlint errors

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

View File

@ -56,7 +56,7 @@ jobs:
else else
BRANCH=sponsors-maintainers-man-completions BRANCH=sponsors-maintainers-man-completions
fi fi
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
@ -100,11 +100,11 @@ jobs:
if [[ -n "$COMMITTED" ]] if [[ -n "$COMMITTED" ]]
then then
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
env: env: