fix event for release

This commit is contained in:
Marco Carrozzo
2023-01-10 10:16:24 +01:00
parent d995e24567
commit d3959566a3

View File

@@ -44,8 +44,8 @@ runs:
echo CI_FORCE_RUN=true >> $GITHUB_ENV echo CI_FORCE_RUN=true >> $GITHUB_ENV
echo "BREAK_ACTION=true" >> $GITHUB_ENV echo "BREAK_ACTION=true" >> $GITHUB_ENV
- name: PUSH on master/develop patch branch - name: RELEASE on master/develop patch branch
if: ${{ env.BREAK_ACTION == false && github.event_name == 'push' }} if: ${{ env.BREAK_ACTION == false && github.event.pull_request.merged }}
shell: bash shell: bash
run: | run: |
if [[ "${{ github.ref_name }}" =~ ^master(-patch.*)?$ ]]; then if [[ "${{ github.ref_name }}" =~ ^master(-patch.*)?$ ]]; then