Skip to content

Commit

Permalink
Fix backslash escaping in heredoc
Browse files Browse the repository at this point in the history
  • Loading branch information
thaliaarchi authored and mame committed Dec 3, 2024
1 parent 2ed61a6 commit e8c003a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,13 @@ jobs:
sudo docker cp qr:/usr/local/share/quine-relay/QR.rexx spoiler/
cd spoiler
git add .
GIT_AUTHOR_NAME="$(git show -s --format=%an "$GITHUB_SHA")" GIT_AUTHOR_EMAIL="$(git show -s --format=%ae "$GITHUB_SHA")" GIT_AUTHOR_DATE="$(git show -s --format=%ad "$GITHUB_SHA")" GIT_COMMITTER_NAME='GitHub Actions' GIT_COMMITTER_EMAIL='[email protected]' TZ=UTC git commit --allow-empty -m "spoiler: $(git show -s --format=%s "$GITHUB_SHA")"
GIT_AUTHOR_NAME="$(git show -s --format=%an "$GITHUB_SHA")" \
GIT_AUTHOR_EMAIL="$(git show -s --format=%ae "$GITHUB_SHA")" \
GIT_AUTHOR_DATE="$(git show -s --format=%ad "$GITHUB_SHA")" \
GIT_COMMITTER_NAME='GitHub Actions' \
GIT_COMMITTER_EMAIL='[email protected]' \
TZ=UTC \
git commit --allow-empty -m "spoiler: $(git show -s --format=%s "$GITHUB_SHA")"
git push --quiet origin spoiler
echo The intermediate sources are available: https://github.com/${GITHUB_REPOSITORY}/tree/spoiler
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
Expand Down
12 changes: 6 additions & 6 deletions src/dot.github.workflows.main.yml.gen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
#{ cp_cmds }
cd spoiler
git add .
GIT_AUTHOR_NAME="$(git show -s --format=%an "$GITHUB_SHA")" \
GIT_AUTHOR_EMAIL="$(git show -s --format=%ae "$GITHUB_SHA")" \
GIT_AUTHOR_DATE="$(git show -s --format=%ad "$GITHUB_SHA")" \
GIT_COMMITTER_NAME='GitHub Actions' \
GIT_COMMITTER_EMAIL='[email protected]' \
TZ=UTC \
GIT_AUTHOR_NAME="$(git show -s --format=%an "$GITHUB_SHA")" \\
GIT_AUTHOR_EMAIL="$(git show -s --format=%ae "$GITHUB_SHA")" \\
GIT_AUTHOR_DATE="$(git show -s --format=%ad "$GITHUB_SHA")" \\
GIT_COMMITTER_NAME='GitHub Actions' \\
GIT_COMMITTER_EMAIL='[email protected]' \\
TZ=UTC \\
git commit --allow-empty -m "spoiler: $(git show -s --format=%s "$GITHUB_SHA")"
git push --quiet origin spoiler
echo The intermediate sources are available: https://github.com/${GITHUB_REPOSITORY}/tree/spoiler
Expand Down

0 comments on commit e8c003a

Please sign in to comment.