Skip to content

Commit

Permalink
fix(ci): get tag name on release job from correct github property
Browse files Browse the repository at this point in the history
"ref_name", not "ref"
  • Loading branch information
growse committed Jul 16, 2024
1 parent c10d94f commit a03f0fd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ jobs:
name: Find beta tags if this is a prod release
id: get_beta_tags
with:
route: GET /repos/owntracks/android/git/matching-refs/tags/${{ github.ref }}-beta
route: GET /repos/owntracks/android/git/matching-refs/tags/${{ github.ref_name }}-beta
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: "echo beta tags: '${{ steps.get_beta_tags.outputs.data }}'"
- name: Get number of matching tags
id: tagCount
env:
Expand Down Expand Up @@ -123,14 +124,14 @@ jobs:
ANDROID_PUBLISHER_CREDENTIALS: ${{ secrets.GOOGLE_CLOUD_SERVICE_ACCOUNT_CREDENTIALS }}

- name: Promote play store production from beta
run: ./gradlew promoteArtifact --from-track beta --promote-track production --release-status inProgress -user-fraction .1
run: ./gradlew promoteArtifact --from-track beta --promote-track production --release-status inProgress --user-fraction .1
working-directory: project
if: ${{ !contains(github.ref, 'beta') && steps.tagCount.outputs.beta_tag_count > 0 }}
env:
ANDROID_PUBLISHER_CREDENTIALS: ${{ secrets.GOOGLE_CLOUD_SERVICE_ACCOUNT_CREDENTIALS }}

- name: Promote play store production from internal
run: ./gradlew promoteArtifact --from-track internal --promote-track production --release-status inProgress -user-fraction .1
run: ./gradlew promoteArtifact --from-track internal --promote-track production --release-status inProgress --user-fraction .1
working-directory: project
if: ${{ !contains(github.ref, 'beta') && steps.tagCount.outputs.beta_tag_count == 0 }}
env:
Expand Down

0 comments on commit a03f0fd

Please sign in to comment.