Skip to content

Commit

Permalink
ci: set SUPPLY_TRACK to internal on non-stable releases
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 5, 2023
1 parent 1b22f71 commit f620ef5
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,29 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: 'recursive'

- uses: ActivityWatch/check-version-format-action@v2
id: version
with:
prefix: 'v'

- name: Echo version
run: |
echo "${{ steps.version.outputs.full }} (stable: ${{ steps.version.outputs.is_stable }})"
# Build in release mode if on a tag/release (longer build times)
- name: Set RELEASE
- name: Set RELEASE and SUPPLY_TRACK
run: |
# Build in release mode if on a tag/release (longer build times)
echo "RELEASE=${{ startsWith(github.ref_name, 'v') }}" >> $GITHUB_ENV
# Set SUPPLY_TRACK (used by fastlane) depending on is_stable
if [[ "${{ steps.version.outputs.is_stable }}" == "true" ]]; then
SUPPLY_TRACK="production"
else
SUPPLY_TRACK="internal"
fi
echo "SUPPLY_TRACK=${SUPPLY_TRACK}" >> $GITHUB_ENV
- name: Set up JDK
uses: actions/setup-java@v1
with:
Expand Down

0 comments on commit f620ef5

Please sign in to comment.