Skip to content

Commit

Permalink
debug eph inst script (#23)
Browse files Browse the repository at this point in the history
* debug eph inst script

* tmp test ephemeral shell script

* remove echo statement on output as its now output

* readd steps

* readd stuff

---------

Co-authored-by: lukqw <lukqw@users.noreply.github.com>
  • Loading branch information
lukqw and lukqw authored Dec 3, 2024
1 parent 0739011 commit 4220c04
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 4220c04

Please sign in to comment.