pr_approved.yml 858 B

1234567891011121314151617181920212223
  1. name: Sync approved PRs to internal codebase
  2. on:
  3. pull_request_target:
  4. types: [labeled]
  5. jobs:
  6. sync_prs_to_internal_codebase:
  7. name: GitHub PR to Internal Codebase Sync
  8. runs-on: ubuntu-latest
  9. if: (github.event.label.name == 'PR-Sync-Merge') ||
  10. (github.event.label.name == 'PR-Sync-Rebase') ||
  11. (github.event.label.name == 'PR-Sync-Update')
  12. steps:
  13. - uses: actions/checkout@v3
  14. - name: Sync approved PRs to internal codebase
  15. uses: espressif/github-actions/github_pr_to_internal_pr@master
  16. env:
  17. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  18. GITLAB_URL: ${{ secrets.GITLAB_URL }}
  19. GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
  20. GIT_CONFIG_NAME: ${{ secrets.GIT_CONFIG_NAME }}
  21. GIT_CONFIG_EMAIL: ${{ secrets.GIT_CONFIG_EMAIL }}
  22. JIRA_PROJECT: IDFGH