diff --git a/.github/workflows/plugin_commercial_schema.yml b/.github/workflows/plugin_commercial_schema.yml index eaf0532..3be8420 100644 --- a/.github/workflows/plugin_commercial_schema.yml +++ b/.github/workflows/plugin_commercial_schema.yml @@ -46,6 +46,8 @@ jobs: name: "Open a pull request" runs-on: ubuntu-latest needs: [generate-schema, vars] + env: + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} steps: - name: Checkout uses: actions/checkout@v4 @@ -79,6 +81,7 @@ jobs: author: shopwareBot committer: shopwareBot assignees: Isengo1989, sushmangupta, bojanrajh - branch: ${{ needs.vars.outputs.PLUGIN_NAME }}-schema-update + base: ${{ env.BRANCH_NAME }} + branch: ${{ needs.vars.outputs.PLUGIN_NAME }}-schema-update-${{ env.BRANCH_NAME }} delete-branch: true - title: 'Update ${{ needs.vars.outputs.PLUGIN_NAME }} admin API schema' + title: 'Update ${{ needs.vars.outputs.PLUGIN_NAME }} (${{ env.BRANCH_NAME }}) admin API schema' diff --git a/.github/workflows/plugin_customproducts_schema.yml b/.github/workflows/plugin_customproducts_schema.yml index 35d44b6..4720fb6 100644 --- a/.github/workflows/plugin_customproducts_schema.yml +++ b/.github/workflows/plugin_customproducts_schema.yml @@ -42,6 +42,8 @@ jobs: name: "Open a pull request" runs-on: ubuntu-latest needs: [generate-schema, vars] + env: + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} steps: - name: Checkout uses: actions/checkout@v4 @@ -75,6 +77,7 @@ jobs: author: shopwareBot committer: shopwareBot assignees: Isengo1989, sushmangupta, bojanrajh - branch: ${{ needs.vars.outputs.PLUGIN_NAME }}-schema-update + base: ${{ env.BRANCH_NAME }} + branch: ${{ needs.vars.outputs.PLUGIN_NAME }}-schema-update-${{ env.BRANCH_NAME }} delete-branch: true - title: 'Update ${{ needs.vars.outputs.PLUGIN_NAME }} admin API schema' + title: 'Update ${{ needs.vars.outputs.PLUGIN_NAME }} (${{ env.BRANCH_NAME }}) admin API schema' diff --git a/.github/workflows/plugin_digitalsalesroom_schema.yml b/.github/workflows/plugin_digitalsalesroom_schema.yml index dfeb883..acf330d 100644 --- a/.github/workflows/plugin_digitalsalesroom_schema.yml +++ b/.github/workflows/plugin_digitalsalesroom_schema.yml @@ -48,6 +48,8 @@ jobs: name: "Open a pull request" runs-on: ubuntu-latest needs: [generate-schema, vars] + env: + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} steps: - name: Checkout uses: actions/checkout@v4 @@ -81,6 +83,7 @@ jobs: author: shopwareBot committer: shopwareBot assignees: Isengo1989, sushmangupta, bojanrajh - branch: ${{ needs.vars.outputs.PLUGIN_NAME }}-schema-update + base: ${{ env.BRANCH_NAME }} + branch: ${{ needs.vars.outputs.PLUGIN_NAME }}-schema-update-${{ env.BRANCH_NAME }} delete-branch: true - title: 'Update ${{ needs.vars.outputs.PLUGIN_NAME }} admin API schema' + title: 'Update ${{ needs.vars.outputs.PLUGIN_NAME }} (${{ env.BRANCH_NAME }}) admin API schema'