Skip to content
Permalink
Browse files

[docbot] transform the milestone to a doc label (3.10.4 => 3.10)

  • Loading branch information
3nids committed Jan 6, 2020
1 parent 0bccdfe commit a55fbc4d4fd96520ab3ade106a9373b7d2afd50c
Showing with 12 additions and 0 deletions.
  1. +12 −0 .github/workflows/pr_to_doc_issue.yml
@@ -12,13 +12,25 @@ jobs:
runs-on: ubuntu-latest
name: Create issue on doc repo for labeled issue
steps:
# obfuscate the github token so it can be used on jobs triggered from forks
- name: Clear GH Token
id: token
uses: opengisch/clear-token@v1.0.12
with:
bot_token_encrypted: ddbdec32940df79f1adf2369b4b10f10b5a66f65
bot_token_xor_key: a1b2c3d47311f8e29e204f85a81b4df4a44e252c

# transform the milestone (e.g. 3.10.4) to a doc label (3.10)
- name: QGIS milestone to Doc label
id: milestone2label
env:
MILESTONE: ${{ github.event.pull_request.milestone.title }}
run: |
LABEL=$(sed -r 's/^([[:digit:]]\.[[:digit:]]+)(\.[[:digit:]]+)?$/\1/' <<< ${MILESTONE})
echo "Label: ${LABEL}""
echo "::set-output name=label::${LABEL}"
# create the documentation issue
- name: Create Documentation issue
id: doc_issue
uses: maxkomarychev/oction-create-issue@v0.7.1

0 comments on commit a55fbc4

Please sign in to comment.
You can’t perform that action at this time.