chore(develop): release 2.40.2 #313
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
types: [closed] | |
name: release-main | |
jobs: | |
pullrequest: | |
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true && contains(toJSON(github.event.pull_request.labels), 'autorelease') && github.base_ref == 'develop' | |
runs-on: ubuntu-latest | |
steps: | |
- name: print | |
run: echo "${{ toJSON(github.event.pull_request.head.ref) }}" | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: Initialize Pull Request | |
id: open-pr | |
uses: repo-sync/pull-request@v2 | |
with: | |
source_branch: "${{ github.event.pull_request.head.ref }}" | |
destination_branch: "main" | |
pr_title: "chore: sync ${{ github.event.pull_request.head.ref }} to main" | |
pr_body: ":crown: *Autogenerated* - sync ${{ github.event.pull_request.head.ref }} to main" | |
pr_assignee: "bgsandan" # Comma-separated list (no spaces) | |
pr_label: "autorelease: main,automerge" # Comma-separated list (no spaces) | |
pr_allow_empty: true # Creates pull request even if there are no changes | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Automerge | |
uses: juliangruber/merge-pull-request-action@v1 | |
with: | |
github-token: "${{ secrets.TOKEN }}" | |
number: ${{steps.open-pr.outputs.pr_number}} |