forked from cloudflare/cloudflare-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1.22 KB
/
issue-sync.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Sync issues internally
on:
issues:
types: [opened]
workflow_dispatch:
inputs:
issue_number:
description: The issue to target
required: true
jobs:
internal-issue-sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "tools/go.mod"
- run: make tools
- name: Set the issue number to sync
run: |
if [ -n "${{ github.event.inputs.issue_number }}" ]; then
echo "issue_number=${{ github.event.inputs.issue_number }}" >> $GITHUB_ENV
else
echo "issue_number=${{ github.event.issue.number }}" >> $GITHUB_ENV
fi
- run: go run cmd/sync-github-issue-to-jira/main.go ${{ env.issue_number }}
working-directory: ./tools
env:
GITHUB_OWNER: cloudflare
GITHUB_REPO: cloudflare-docs
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JIRA_HOSTNAME: ${{ secrets.JIRA_HOSTNAME }}
JIRA_AUTH_TOKEN: ${{ secrets.JIRA_AUTH_TOKEN }}
CF_ACCESS_CLIENT_ID: ${{ secrets.CF_ACCESS_CLIENT_ID }}
CF_ACCESS_CLIENT_SECRET: ${{ secrets.CF_ACCESS_CLIENT_SECRET }}