Skip to content

Commit 4220c04

Browse files
authored
debug eph inst script (#23)
* 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 <[email protected]>
1 parent 0739011 commit 4220c04

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ephemeral.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ jobs:
3939
- name: Run Ephemeral Script and Capture Output
4040
run: |
4141
pip3 install localstack
42-
OUTPUT=$(bash bin/ephemeral.sh 2>&1)
43-
echo "$OUTPUT"
42+
bash bin/ephemeral.sh 2>&1 | tee output.log
43+
44+
OUTPUT=$(cat output.log)
4445
NEW_URL=$(echo "$OUTPUT" | grep -Eo 'https://ls-[^ ]+')
4546
4647
if [ -z "$NEW_URL" ]; then
@@ -79,12 +80,11 @@ jobs:
7980
</body>
8081
</html>
8182
EOL
82-
8383
- name: Switch to gh-pages Branch and Commit Changes
8484
run: |
8585
git fetch origin gh-pages || echo "gh-pages branch does not exist; creating it."
8686
git checkout gh-pages || git checkout --orphan gh-pages
8787
git rm -rf . # Remove all files in the branch
8888
git add index.html
8989
git commit -m "Update redirect to ${NEW_URL}"
90-
git push origin gh-pages --force
90+
git push origin gh-pages --force

0 commit comments

Comments
 (0)