name: JIRA Sync on: issues: types: [opened, closed, deleted, reopened] pull_request_target: types: [opened, closed, reopened] issue_comment: # Also triggers when commenting on a PR from the conversation view types: [created] jobs: sync: # using `main` as the ref will keep your workflow up-to-date uses: hashicorp/vault-workflows-common/.github/workflows/jira.yaml@main # assuming you use Vault to get secrets # if you use GitHub secrets, use secrets.XYZ instead of steps.secrets.outputs.XYZ secrets: JIRA_SYNC_BASE_URL: ${{ steps.secrets.outputs.JIRA_SYNC_BASE_URL }} JIRA_SYNC_USER_EMAIL: ${{ steps.secrets.outputs.JIRA_SYNC_USER_EMAIL }} JIRA_SYNC_API_TOKEN: ${{ steps.secrets.outputs.JIRA_SYNC_API_TOKEN }} with: teams-array: '["applications-eco"]'