Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions .github/workflows/in_develop_labeler.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Label Issue In Develop
on:
pull_request:
types: [closed]
workflow_run:
workflows:
- Preflight - Label Issue In Develop
types:
- completed
jobs:
label:
label_preflight:
name: Label Issue In Develop
runs-on: ubuntu-18.04
if: github.event.pull_request.merged == true
Expand All @@ -19,9 +22,22 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r ./.github/scripts/requirements.txt

- name: Download workflow artifact
uses: dawidd6/action-download-artifact@v2.11.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: peek_icons.yml
run_id: ${{ github.event.workflow_run.id }}

- name: Read the pr_num file
id: pr_num_reader
uses: juliangruber/read-file-action@v1.0.0
with:
path: ./pr_num/pr_num.txt

- name: Run in_develop_labeler.py
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
BODY: ${{ github.event.pull_request.body }}
BODY: ${{ steps.pr_num_reader.outputs.content.body }}
run: python ./.github/scripts/in_develop_labeler.py $TOKEN "$BODY"
33 changes: 33 additions & 0 deletions .github/workflows/in_develop_labeler_preflight.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Preflight - Label Issue In Develop
on:
pull_request:
types: [closed]
jobs:
label_preflight:
name: Preflight - Label Issue In Develop
runs-on: ubuntu-18.04
if: github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v2

- name: Setup Python v3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./.github/scripts/requirements.txt

- name: Save the PR number in an artifact
shell: bash
env:
PR_NUM: ${{ github.event.number }}
run: echo $PR_NUM > pr_num.txt

- name: Upload the PR number
uses: actions/upload-artifact@v2.2.4
with:
name: pr_num
path: ./pr_num.txt