Skip to content

Commit

Permalink
ci: fixing propagation of env
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaile committed Sep 24, 2024
1 parent 1b97fe4 commit 9a1fa1f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ jobs:
# Fetch tag manually because fetch-tags option for checkout@v4 does not work
git fetch --force --tags --depth 500
echo "MAJOR_VERSION=$(git describe | cut -d'-' -f1)" >> $GITHUB_ENV
# Print MAJOR_VERSION
echo "MAJOR_VERSION=$MAJOR_VERSION"
# If `MAJOR_VERSION` is not set, fail the job
- name: Check for MAJOR_VERSION
run: |
# This check is here because setting the $GITHUB_ENV variable is not immediate propagated to the next line
if [ -z "$MAJOR_VERSION" ]; then
echo "MAJOR_VERSION is not set"
exit 1
echo "No MAJOR_VERSION found"
exit 1
fi
- name: Install rclone
run: |
Expand Down

0 comments on commit 9a1fa1f

Please sign in to comment.