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

debug eph inst script #23

Merged
merged 5 commits into from
Dec 3, 2024
Merged
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
8 changes: 4 additions & 4 deletions .github/workflows/ephemeral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ jobs:
- name: Run Ephemeral Script and Capture Output
run: |
pip3 install localstack
OUTPUT=$(bash bin/ephemeral.sh 2>&1)
echo "$OUTPUT"
bash bin/ephemeral.sh 2>&1 | tee output.log

OUTPUT=$(cat output.log)
NEW_URL=$(echo "$OUTPUT" | grep -Eo 'https://ls-[^ ]+')

if [ -z "$NEW_URL" ]; then
Expand Down Expand Up @@ -79,12 +80,11 @@ jobs:
</body>
</html>
EOL

- name: Switch to gh-pages Branch and Commit Changes
run: |
git fetch origin gh-pages || echo "gh-pages branch does not exist; creating it."
git checkout gh-pages || git checkout --orphan gh-pages
git rm -rf . # Remove all files in the branch
git add index.html
git commit -m "Update redirect to ${NEW_URL}"
git push origin gh-pages --force
git push origin gh-pages --force
Loading