Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
heiskr authored Mar 4, 2022
1 parent ee16dbe commit 6584600
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,23 @@ runs:
steps:
- shell: bash
run: |
echo "Check that all required env variables are set"
if [ -z "$TO_STEP" ]
then
echo "TO_STEP is unset or set to the empty string"
exit 1
fi
if [ -z "$FROM_STEP" ]
then
echo "FROM_STEP is unset or set to the empty string"
exit 1
fi
if [ -z "$GITHUB_TOKEN" ]
then
echo "GITHUB_TOKEN is unset or set to the empty string"
exit 1
fi
echo "Check that we are on FROM_STEP"
if [ "$(cat .github/script/STEP)" != $FROM_STEP ]
then
Expand Down

0 comments on commit 6584600

Please sign in to comment.