-
Notifications
You must be signed in to change notification settings - Fork 0
/
workflow.yaml
27 lines (25 loc) · 970 Bytes
/
workflow.yaml
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
name: Update Jira Fix Version
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
sync-version-with-jira-issues:
if: startsWith(github.head_ref, 'rc/') && (github.base_ref == 'master' || github.base_ref == 'main')
runs-on: ubuntu-latest
steps:
- name: Pull Request Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: '0'
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: pip install -r https://raw.githubusercontent.com/reportportal/jira-versions-sync/main/requirements.txt
- name: Update Jira Issues
run: python3 -c "$(wget -q -O - https://raw.githubusercontent.com/reportportal/jira-versions-sync/main/main.py)"
env:
JIRA_SERVER: ${{ vars.JIRA_SERVER }}
JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }}