Skip to content

Commit

Permalink
Merge pull request #27 from rmartin16/pre-commit-update-quotes
Browse files Browse the repository at this point in the history
Quote bash variables with double quotes
  • Loading branch information
freakboy3742 authored Apr 2, 2023
2 parents daf9771 + 83a41ca commit 6580e87
Showing 1 changed file with 8 additions and 8 deletions.
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 }}

0 comments on commit 6580e87

Please sign in to comment.