mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-07-30 02:38:19 +02:00
ci: Fix Jira sync action (action setting based on standard boilerplate)
This commit is contained in:
17
.github/workflows/new_prs.yml
vendored
17
.github/workflows/new_prs.yml
vendored
@ -1,16 +1,25 @@
|
|||||||
name: Sync PRs to JIRA
|
name: Sync remain PRs to Jira
|
||||||
|
|
||||||
# This workflow will be triggered when a pull request is opened
|
# This workflow will be triggered every hour, to sync remaining PRs (i.e. PRs with zero comment) to Jira project
|
||||||
on: pull_request
|
# Note that, PRs can also get synced when new PR comment is created
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 * * * *"
|
||||||
|
|
||||||
|
# Limit to single concurrent run for workflows which can create Jira issues.
|
||||||
|
# Same concurrency group is used in issue_comment.yml
|
||||||
|
concurrency: jira_issues
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync_prs_to_jira:
|
sync_prs_to_jira:
|
||||||
name: Sync PRs to Jira
|
name: Sync PRs to Jira
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v2
|
||||||
- name: Sync PRs to Jira project
|
- name: Sync PRs to Jira project
|
||||||
uses: espressif/github-actions/sync_issues_to_jira@master
|
uses: espressif/github-actions/sync_issues_to_jira@master
|
||||||
|
with:
|
||||||
|
cron_job: true
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
JIRA_PASS: ${{ secrets.JIRA_PASS }}
|
JIRA_PASS: ${{ secrets.JIRA_PASS }}
|
||||||
|
Reference in New Issue
Block a user