action: add workflow dispatch for jira sync

This commit is contained in:
Calvin Leung Huang
2023-12-22 14:04:29 -08:00
parent 1cae21fb2f
commit 2cb973c358

29
.github/workflows/jira.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: JIRA Sync
on:
# We only
workflow_dispatch:
inputs:
team-labels:
description: 'Team label to use. Wrapped in [], e.g. ["core"]'
required: true
type: string
issues:
types: [closed, deleted, reopened]
pull_request_target:
types: [closed, reopened]
issue_comment: # Also triggers when commenting on a PR from the conversation view
types: [created]
jobs:
action-output-test:
steps:
-run: |
echo "Evant action: ${{ github.event.action }}"
echo "Team label: ${{ inputs.team-label }}"
# sync:
# uses: hashicorp/vault-workflows-common/.github/workflows/jira.yaml@main
# 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: ${{ inputs.team-label }}