Skip to content

Commit

Permalink
Merge pull request #12899 from RasaHQ/merge-3.6.x-main-7f5cbf0
Browse files Browse the repository at this point in the history
Merge 3.6.x into main
  • Loading branch information
m-vdb committed Oct 6, 2023
2 parents f5fed3a + bb06cc0 commit 32c2434
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/automatic-release-to-main-merger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ jobs:
runs-on: ubuntu-22.04

# only run this workflow if a pull request has been merged
if: github.event.pull_request.merged == true
# don't run this workflow on pull request from forks, permissions will be missing anyway
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflows-in-forked-repositories
if: github.event.pull_request.merged == true && github.event.pull_request.head.repo.full_name == 'RasaHQ/rasa'

steps:
- name: Checkout git repository 🕝
Expand Down Expand Up @@ -68,14 +70,6 @@ jobs:
with:
branch: ${{ steps.get-branch-name.outputs.new_branch }}

- name: Notify Slack if creating a new branch failed 💬
if: ${{ failure() && steps.create-new-branch.conclusion == 'failure' }}
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_INFRASTRUCTURE_SQUAD_MONITORS_WEBHOOK_URL }}
uses: Ilshidur/action-slack@689ad44a9c9092315abd286d0e3a9a74d31ab78a
with:
args: "🚨 There was a problem with creating a new branch containing commits from the ${{ env.RELEASE_BRANCH }} release branch. Check out the Github action: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"

- name: Open pull request ☄️
if: ${{ steps.create-new-branch.conclusion == 'success' }}
uses: repo-sync/pull-request@7e79a9f5dc3ad0ce53138f01df2fad14a04831c5
Expand Down Expand Up @@ -109,11 +103,11 @@ jobs:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Notify Slack when closing of outdated merge-PRs failed 💬
if: ${{ failure() && steps.close-outdated-release-merge-prs.conclusion == 'failure'}}
- name: Notify Slack on failure 💬
if: failure()
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_INFRASTRUCTURE_SQUAD_MONITORS_WEBHOOK_URL }}
uses: Ilshidur/action-slack@689ad44a9c9092315abd286d0e3a9a74d31ab78a
with:
args: "🚨 There was a problem with closing outdated release-merge-PRs of the ${{ env.RELEASE_BRANCH }} release branch. Check out the Github action: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} \
These release-merge-PRs are currently open: https://github.com/${{ github.repository }}/pulls?q=is%3Aopen+label%3A${{ env.LABEL_TYPE }}+head%3Amerge-${{ steps.get-branch-name.outputs.release_branch }}-main"
args: "🚨 There was a problem with porting changes from ${{ env.RELEASE_BRANCH }} to the `main` branch. \
Check out the Github action: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"

0 comments on commit 32c2434

Please sign in to comment.