Skip to content

Commit

Permalink
Keep spoiler history instead of force-pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
thaliaarchi committed Apr 30, 2024
1 parent f367bbd commit 0415e7b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
sudo docker run --privileged --name qr -e CI=true -t quine-relay
- name: push spoiler
run: |
mkdir spoiler
git clone https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/mame/quine-relay.git spoiler --branch spoiler
git -C spoiler rm --quiet -r '*'
sudo docker cp qr:/usr/local/share/quine-relay/QR.rb spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.rs spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.scala spoiler/
Expand Down Expand Up @@ -146,12 +147,12 @@ jobs:
sudo docker cp qr:/usr/local/share/quine-relay/QR.rc spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.rexx spoiler/
cd spoiler
git init --quiet
git config user.name 'Yusuke Endoh'
git config user.email '[email protected]'
git add .
git commit -m spoiler --quiet
git push --force --quiet https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/mame/quine-relay.git master:spoiler
TZ=Asia/Tokyo \
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/mame/quine-relay/tree/spoiler
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
env:
Expand Down

0 comments on commit 0415e7b

Please sign in to comment.