Skip to content

Commit 23f8ab5

Browse files
Merge pull request #15 from LegReq/multibranch
Added debugging statements
2 parents 2dd4525 + 84b0400 commit 23f8ab5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ runs:
146146
147147
if [[ $? -ne 0 ]]
148148
then
149+
echo "Grep exit code $?"
150+
echo "Deleting branch $branch"
151+
echo "Branches:"
152+
echo $BRANCHES
153+
149154
# Branch no longer exists; delete from GitHub Pages.
150155
rm -rf "$branch"
151156
fi
@@ -160,8 +165,14 @@ runs:
160165
161166
if [[ "$branch" == "${{ inputs.default-branch }}" ]]
162167
then
168+
echo "Pre-move"
169+
ls -R
163170
# Move entire _branch directory.
164171
mv _branch "../${{ inputs.pages-path }}"
172+
echo "Post-move"
173+
ls -R
174+
echo "Site post-move"
175+
ls -R "../${{ inputs.pages-path }}"
165176
else
166177
# Remove previous branch content if it exists and replace it with newly generated content.
167178
rm -rf "_branch/$branch"

0 commit comments

Comments
 (0)