Skip to content

Commit

Permalink
docs(caller-workflow): add caller workflow for easy copy to target repo
Browse files Browse the repository at this point in the history
- 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
tomassebestik committed Sep 13, 2024
1 parent 0539920 commit d651127
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions docs/caller-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
# 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 Espressif Jira
run-name: >
Sync to Jira -
${{ github.event_name == 'issue_comment' && 'Issue Comments' ||
github.event_name == 'schedule' && 'New Pull Requests' ||
github.event_name == 'issues' && 'New Issues' }}
on:
issues: {types: [opened]}
issue_comment: {types: [created, edited, deleted]}
schedule: [cron: '0 * * * *']

jobs:
sync-to-jira:
name: >
Sync to Jira -
${{ github.event_name == 'issue_comment' && 'Issue Comments' ||
github.event_name == 'schedule' && 'New Pull Requests' ||
github.event_name == 'issues' && 'New Issues' }}
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: write
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Run synchronization to Jira
uses: espressif/sync-jira-actions@change/composite-action
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 }}

0 comments on commit d651127

Please sign in to comment.