mirror of
https://github.com/konpa/devicon.git
synced 2025-08-30 17:50:35 +02:00
Bugfix/fix in-develop labeler (#1410)
* fix issue not being labeled with in-develop * restrict to only run on merge to develop * Remove Python setup Co-authored-by: Josélio Júnior <76992016+lunatic-fox@users.noreply.github.com> --------- Co-authored-by: Josélio Júnior <76992016+lunatic-fox@users.noreply.github.com> Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
committed by
GitHub
parent
ed1798836c
commit
70df11eef5
29
.github/workflows/in_develop_labeler.yml
vendored
29
.github/workflows/in_develop_labeler.yml
vendored
@@ -1,12 +1,14 @@
|
||||
name: Label Issue In Develop
|
||||
on:
|
||||
pull_request:
|
||||
types: [closed]
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ['On Develop PR Merge']
|
||||
types:
|
||||
- completed
|
||||
jobs:
|
||||
label:
|
||||
label_preflight:
|
||||
name: Label Issue In Develop
|
||||
runs-on: ubuntu-18.04
|
||||
if: github.event.pull_request.merged == true
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
@@ -19,9 +21,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 }}
|
||||
run: python ./.github/scripts/in_develop_labeler.py $TOKEN "$BODY"
|
||||
PR_NUM: ${{ steps.pr_num_reader.outputs.content }}
|
||||
run: python ./.github/scripts/in_develop_labeler.py $TOKEN "$PR_NUM"
|
||||
|
24
.github/workflows/in_develop_labeler_preflight.yml
vendored
Normal file
24
.github/workflows/in_develop_labeler_preflight.yml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
name: On Develop PR Merge
|
||||
on:
|
||||
pull_request:
|
||||
types: [closed]
|
||||
branches: [develop]
|
||||
jobs:
|
||||
save_pr_num_in_artifact:
|
||||
name: Preflight Label Issue In Develop
|
||||
runs-on: ubuntu-18.04
|
||||
if: github.event.pull_request.merged == true
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- 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
|
Reference in New Issue
Block a user