-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from rmartin16/pre-commit-update-quotes
Quote bash variables with double quotes
- Loading branch information
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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 | ||
|
@@ -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 }} |