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

PR Preview System Test PR #2

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
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
10 changes: 5 additions & 5 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
push:
branches: ["deployed"]

pull_request_target:
pull_request:
types:
- opened
- reopened
Expand Down Expand Up @@ -136,15 +136,15 @@ jobs:

echo "Deploy!"
mv ../built-site/* ./
elif [ "${event}" == "pull_request_target" ]; then
elif [ "${event}" == "pull_request" ]; then
echo "PR! ${pr}"
rm -rf "./pr-previews/${pr}"
if [ "${action}" != "closed" ]; then
mkdir -p "./pr-previews/${pr}"
mv ../built-site/* ./pr-previews/${pr}/
fi
fi

echo "Oh no!" >> ./attack.txt
# commit!
git config --global user.email "buildbot@bot.bot"
git config --global user.name "build-bot-bob"
Expand All @@ -158,7 +158,7 @@ jobs:
echo "repoSiteURL=$repoSiteURL" >> $GITHUB_ENV

- name: Leave a link to the PR
if: ${{ success() && github.event_name == 'pull_request_target' && github.event.action != 'closed' }}
if: ${{ success() && github.event_name == 'pull_request' && github.event.action != 'closed' }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: pr-preview
Expand All @@ -167,7 +167,7 @@ jobs:
Preview at https://${{ env.repoSiteURL }}/pr-previews/${{ github.event.number }} for commit ${{ github.sha }}

- name: Or delete the link...
if: ${{ github.event_name == 'pull_request_target' && github.event.action == 'closed' }}
if: ${{ github.event_name == 'pull_request' && github.event.action == 'closed' }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: pr-preview
Expand Down
2 changes: 1 addition & 1 deletion Browser_IDE/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SplashKit Online</title>
<title>SplashKit Online New PR Test!</title>

<link rel="stylesheet" href="codemirror-5.65.15/lib/codemirror.css">
<link rel="stylesheet" href="codemirror-5.65.15/theme/dracula.css">
Expand Down
Loading