Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quote bash variables with double quotes #27

Merged
merged 1 commit into from
Apr 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/pre-commit-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:

- name: Configure git
run: |
git config user.email '[email protected]'
git config user.name 'Brutus (robot)'
git config user.email "[email protected]"
git config user.name "Brutus (robot)"

- name: Set up Python
uses: actions/[email protected]
Expand All @@ -70,9 +70,9 @@ jobs:
id: pr
run: |
if [[ $(git status --porcelain) ]]; then
echo 'needed=true' >> ${GITHUB_OUTPUT}
echo "needed=true" >> ${GITHUB_OUTPUT}
else
echo 'needed=false' >> ${GITHUB_OUTPUT}
echo "needed=false" >> ${GITHUB_OUTPUT}
fi

- name: Create Pull Request
Expand All @@ -95,9 +95,9 @@ jobs:
git fetch origin
git checkout ${{ env.BRANCH_NAME }}

FILENAME='${{ env.CHANGENOTE_DIR }}/${{ steps.created-pr.outputs.pull-request-number }}.misc.rst'
printf 'Updated ``pre-commit`` hooks to the latest version.\n' > '${FILENAME}'
FILENAME="${{ env.CHANGENOTE_DIR }}/${{ steps.created-pr.outputs.pull-request-number }}.misc.rst"
printf 'Updated ``pre-commit`` hooks to the latest version.\n' > "${FILENAME}"

git add '${FILENAME}'
git commit -m 'Add changenote.'
git add "${FILENAME}"
git commit -m "Add changenote."
git push --set-upstream origin ${{ env.BRANCH_NAME }}