[dev] [tofikwest] tofik/update-ui-task-comments-sidebar (#1955) #894
This file contains hidden or 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
| name: Create Main -> Release Pull Request | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| create-pull-request: | |
| runs-on: warp-ubuntu-latest-arm64-4x | |
| permissions: | |
| pull-requests: write | |
| contents: write | |
| issues: write | |
| steps: | |
| - name: Add permissions | |
| run: git config --global --add safe.directory /github/workspace | |
| continue-on-error: true | |
| - name: Check out repository code | |
| uses: actions/checkout@v3 | |
| continue-on-error: true | |
| - name: Get package version | |
| id: package-version | |
| run: echo "::set-output name=PACKAGE_VERSION::$(cat package.json | jq -r .version)" | |
| # The pull-request action will now only run if the checkout action was successful. | |
| - name: Create pull request | |
| if: ${{ success() }} # This step runs only if all previous steps succeeded | |
| uses: repo-sync/pull-request@v2 | |
| continue-on-error: true | |
| with: | |
| destination_branch: 'release' | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| pr_label: 'prod-deploy,automated-pr' | |
| pr_title: '[${{ github.event.repository.name }}] Production Deploy' | |
| pr_body: | | |
| This is an automated pull request to release the candidate branch into production, which will trigger a deployment. | |
| It was created by the [Production PR] action. | |
| # Optionally, you can add a step here to notify you if the previous steps failed, | |
| # so that you can take appropriate actions. | |
| - name: Notify Failure | |
| if: ${{ failure() }} # This step runs only if any of the previous steps failed | |
| run: echo "A step in the job failed. Please check the GitHub Actions logs for details." | |
| # You could also trigger other types of notifications, such as sending an email, an alert to Slack, etc. |