File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments