Skip to content

Commit b0117e0

Browse files
committed
ci: extract tag name for release
1 parent 6a351e9 commit b0117e0

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/android_release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,20 @@ jobs:
5151
./gradlew -PNEXUS_PASSWORD=${NEXUS_PASSWORD} :fijkplayer-full:uploadArchives
5252
zip -r Symbols.zip fijkplayer-full/build/intermediates/cmake/release/obj
5353
54+
- name: Extract tag name
55+
id: tag
56+
uses: actions/github-script@0.2.0
57+
with:
58+
github-token: ${{ secrets.GITHUB_TOKEN }}
59+
script: |
60+
return context.payload.ref.replace('refs/tags/', '');
61+
5462
- name: Create Release
5563
id: create_release
5664
uses: ncipollo/release-action@v1
5765
with:
5866
token: ${{ secrets.GITHUB_TOKEN }}
59-
tag: ${{ github.ref }}
60-
name: Release ${{ github.ref }}
67+
name: Release ${{ steps.tag.outputs.result }}
6168
draft: false
6269
artifacts: "./android/ijkplayer/Symbols.zip"
6370
allowUpdates: true

.github/workflows/ios_release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ jobs:
4141
uses: ncipollo/release-action@v1
4242
with:
4343
token: ${{ secrets.GITHUB_TOKEN }}
44-
tag: ${{ github.ref }}
45-
name: Release ${{ github.ref }}
44+
name: Release ${{ steps.tag.outputs.result }}
4645
draft: false
4746
artifacts: "./ios/CocoaPodsPub/IJKMediaPlayer.tar.gz"
4847
allowUpdates: true

0 commit comments

Comments
 (0)