Skip to content

Commit

Permalink
fix: git checkout before checking Step (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinsukehlab authored Jan 5, 2024
1 parent eceb735 commit 6176c69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ runs:
exit 1
fi
echo "Make sure we are on the base branch ($BASE_BRANCH_NAME)"
git checkout $BASE_BRANCH_NAME
echo "Check that we are on FROM_STEP"
if [ "$(cat .github/steps/-step.txt)" != $FROM_STEP ]
then
echo "Current step is not $FROM_STEP"
exit 0
fi
echo "Make sure we are on the base branch ($BASE_BRANCH_NAME)"
git checkout $BASE_BRANCH_NAME
echo "Update the step to TO_STEP"
NEXT_STEP=$(cat .github/steps/[$TO_STEP]-*.md)
HEADER=$(awk '/<header>/,/<\/header>/' README.md)
Expand Down

0 comments on commit 6176c69

Please sign in to comment.