diff --git a/.github/workflows/update-app-version.yml b/.github/workflows/update-app-version.yml index dadee0f..8a41c76 100644 --- a/.github/workflows/update-app-version.yml +++ b/.github/workflows/update-app-version.yml @@ -18,6 +18,8 @@ on: jobs: update-app-version: + if: >- + github.ref_type == 'branch' runs-on: ubuntu-latest permissions: contents: write @@ -50,6 +52,6 @@ jobs: git push --set-upstream origin ${{ steps.app-version.outputs.branch-name }} - name: Create pull request - run: gh pr create --title "${{ steps.app-version.outputs.message }}" --body "" + run: gh pr create --base ${{ github.ref_name }} --title "${{ steps.app-version.outputs.message }}" --body "" env: GITHUB_TOKEN: ${{ github.token }}