From 7f8805a761426deea049fd9ae8d468bd9373cd8d Mon Sep 17 00:00:00 2001 From: Yogesh Choudhary Paliyal Date: Tue, 17 Sep 2024 20:38:09 +0530 Subject: [PATCH] Update uploadBuildOnTag.yaml --- .github/workflows/uploadBuildOnTag.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/uploadBuildOnTag.yaml b/.github/workflows/uploadBuildOnTag.yaml index c7476fcb..9ea4daaa 100644 --- a/.github/workflows/uploadBuildOnTag.yaml +++ b/.github/workflows/uploadBuildOnTag.yaml @@ -1,6 +1,9 @@ name: Upload build on release tag on: + push: + tags: + - '*' workflow_dispatch: inputs: tag: @@ -15,7 +18,7 @@ jobs: - uses: actions/checkout@v4 with: - ref: ${{ inputs.tag }} + ref: ${{ inputs.tag || github.ref_name }} - name: Setting up project uses: ./.github/actions/setup @@ -64,7 +67,7 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: ${{ steps.apk-free-generate.outputs.apk-path }} - tag: ${{ inputs.tag }} + tag: ${{ inputs.tag || github.ref_name }} overwrite: true file_glob: true @@ -86,6 +89,6 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: ${{ steps.apk-pro-generate.outputs.apk-path }} - tag: ${{ inputs.tag }} + tag: ${{ inputs.tag || github.ref_name }} overwrite: true file_glob: true