Merge branch 'gh_actions/sync_approved_prs' into 'master'

Update - Sync approved PRs to GitLab (ESP-IDF) workflow

Closes RDT-58

See merge request espressif/esp-idf!15845
This commit is contained in:
Zim Kalinowski
2021-11-24 02:38:43 +00:00

View File

@@ -1,21 +1,23 @@
name: GitHub PR to Internal Codebase Sync name: Sync approved PRs to internal codebase
on: on:
pull_request_review: pull_request_target:
types: [submitted] types: [labeled]
jobs: jobs:
sync_prs_to_internal_codebase: sync_prs_to_internal_codebase:
name: GitHub PR to Internal Codebase Sync name: GitHub PR to Internal Codebase Sync
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event.review.state == 'approved' && (contains(github.event.review.body, '/rebase') || contains(github.event.review.body, '/merge')) if: (github.event.label.name == 'PR-Sync-Merge') ||
(github.event.label.name == 'PR-Sync-Rebase') ||
(github.event.label.name == 'PR-Sync-Update')
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
- name: GitHub PR to Internal Codebase Sync - name: Sync approved PRs to internal codebase
uses: espressif/github-actions/github_pr_to_internal_pr@master uses: espressif/github-actions/github_pr_to_internal_pr@master
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLAB_URL: ${{ secrets.GITLAB_URL }} GITLAB_URL: ${{ secrets.GITLAB_URL }}
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }} GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_CONFIG_NAME: ${{ secrets.GIT_CONFIG_NAME }} GIT_CONFIG_NAME: ${{ secrets.GIT_CONFIG_NAME }}
GIT_CONFIG_EMAIL: ${{ secrets.GIT_CONFIG_EMAIL }} GIT_CONFIG_EMAIL: ${{ secrets.GIT_CONFIG_EMAIL }}
JIRA_PROJECT: IDFGH JIRA_PROJECT: IDFGH