Skip to content

Commit

Permalink
[github] fix conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 15, 2020
1 parent ee0449e commit 2f7eaf7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pr_to_doc_issue.yml
Expand Up @@ -24,7 +24,7 @@ jobs:

# transform the milestone (e.g. 3.10.4) to a doc label (3.10)
- name: QGIS milestone to Doc label
if: cancelled() == false
if: github.event.pull_request.merged && contains( github.event.pull_request.labels.*.name, 'Needs Documentation')
id: milestone2label
env:
MILESTONE: ${{ github.event.pull_request.milestone.title }}
Expand All @@ -36,7 +36,7 @@ jobs:
# get the PR body
- name: Get PR body as JSON
if: cancelled() == false
if: github.event.pull_request.merged && contains( github.event.pull_request.labels.*.name, 'Needs Documentation')
id: get_pr_info
uses: octokit/request-action@v2.x
env:
Expand All @@ -47,7 +47,7 @@ jobs:

# extract body from json output
- name: Get PR body as text
if: cancelled() == false
if: github.event.pull_request.merged && contains( github.event.pull_request.labels.*.name, 'Needs Documentation')
id: get_pr_body
uses: gr2m/get-json-paths-action@v1.x
with:
Expand All @@ -56,7 +56,7 @@ jobs:

# get commits from the PR
- name: Get PR commits
if: cancelled() == false
if: github.event.pull_request.merged && contains( github.event.pull_request.labels.*.name, 'Needs Documentation')
uses: octokit/request-action@v2.x
id: get_pr_commits
env:
Expand All @@ -67,7 +67,7 @@ jobs:

# extracts the matching commits
- name: Filter commits with \[needs?.doc(umentation)?s?\]
if: cancelled() == false
if: github.event.pull_request.merged && contains( github.event.pull_request.labels.*.name, 'Needs Documentation')
id: filtered_commits
env:
JSON_DATA: ${{ steps.get_pr_commits.outputs.data }}
Expand All @@ -77,7 +77,7 @@ jobs:
# create the documentation issue
- name: Create Documentation issue
if: cancelled() == false
if: github.event.pull_request.merged && contains( github.event.pull_request.labels.*.name, 'Needs Documentation')
id: doc_issue
uses: maxkomarychev/oction-create-issue@v0.7.1
with:
Expand Down

0 comments on commit 2f7eaf7

Please sign in to comment.