-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(caller-workflow): add caller workflow for easy copy to target repo
- docs(caller-workflow): add secrets ENV vars to be passed to action - docs(caller-workflow): add custom run-name; more clear in Action tab
- Loading branch information
1 parent
59b01fd
commit 7f5c835
Showing
4 changed files
with
111 additions
and
117 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
# This GitHub Actions workflow synchronizes GitHub issues, comments, and pull requests with Jira. | ||
# It triggers on new issues, issue comments, and on a scheduled basis. | ||
# The workflow uses a custom action to perform the synchronization with Jira (espressif/sync-jira-actions). | ||
name: Sync to Jira | ||
|
||
run-name: > | ||
Sync to Jira - | ||
${{ github.event_name == 'issue_comment' && 'Issue Comment' || | ||
github.event_name == 'schedule' && 'New Pull Requests' || | ||
github.event_name == 'issues' && 'New Issue' || | ||
github.event_name == 'workflow_dispatch' && 'Manual Sync' }} | ||
on: | ||
issues: {types: [opened]} | ||
issue_comment: {types: [created, edited, deleted]} | ||
schedule: [cron: '0 * * * *'] | ||
workflow_dispatch: | ||
inputs: | ||
action: {description: 'Action to be performed', required: true, default: 'mirror-issues'} | ||
issue-numbers: {description: 'Issue numbers to sync (comma-separated)', required: true} | ||
|
||
jobs: | ||
sync-to-jira: | ||
name: > | ||
Sync to Jira - | ||
${{ github.event_name == 'issue_comment' && 'Issue Comment' || | ||
github.event_name == 'schedule' && 'New Pull Requests' || | ||
github.event_name == 'issues' && 'New Issue' || | ||
github.event_name == 'workflow_dispatch' && 'Manual Sync' }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run synchronization to Jira | ||
uses: espressif/sync-jira-actions@v1 | ||
with: | ||
jira-project: IDFSYNTEST | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
JIRA_PASS: ${{ secrets.JIRA_PASS }} | ||
JIRA_URL: ${{ secrets.JIRA_URL }} | ||
JIRA_USER: ${{ secrets.JIRA_USER }} |