Skip to content

Commit

Permalink
Merge pull request #896 from endlessm/895-android-trigger-version
Browse files Browse the repository at this point in the history
ci: Fix version used for triggering kolibri-installer-android
  • Loading branch information
manuq authored Oct 23, 2023
2 parents 1013eb6 + 61c4fab commit fab4fd0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ jobs:
runs-on: ubuntu-latest

outputs:
# Normalize the tag and ref names here so they can be used below.
# Normalize the tag, version and ref names here so they can be
# used below.
tag: ${{ steps.set-tag.outputs.tag }}
version: ${{ steps.set-tag.outputs.version }}
ref: "refs/tags/${{ steps.set-tag.outputs.tag }}"

# Don't trigger app builds for major or rc releases since they're
Expand All @@ -43,10 +45,13 @@ jobs:
script: |
core.setFailed('Release must run from a v* tag')
- name: Normalize tag name
- name: Normalize tag name and version
id: set-tag
run: |
echo "tag=${{ inputs.tagname && inputs.tagname || github.ref_name }}" >> "$GITHUB_OUTPUT"
tag="${{ inputs.tagname && inputs.tagname || github.ref_name }}"
version="${tag#v}"
echo "tag=$tag" >> "$GITHUB_OUTPUT"
echo "version=$version" >> "$GITHUB_OUTPUT"
build:
name: Build
Expand Down Expand Up @@ -146,6 +151,6 @@ jobs:
repo: "kolibri-installer-android",
event_type: "kolibri-explore-plugin-release",
client_payload: {
VERSION: "${{ needs.validate.outputs.tag }}",
VERSION: "${{ needs.validate.outputs.version }}",
}
})

0 comments on commit fab4fd0

Please sign in to comment.