1
0
mirror of https://github.com/arduino/library-registry.git synced 2025-07-07 14:41:10 +03:00

Merge pull request #15 from arduino/remove-enabled-job

Remove unnecessary `enabled` job from "Manage PRs" workflow
This commit is contained in:
per1234
2021-04-27 07:49:51 -07:00
committed by GitHub

View File

@ -20,7 +20,7 @@ on:
- edited - edited
jobs: jobs:
enabled: diff:
if: > if: >
github.event_name == 'pull_request_target' || github.event_name == 'pull_request_target' ||
( (
@ -30,7 +30,19 @@ jobs:
contains(github.event.comment.body, 'ArduinoBot') contains(github.event.comment.body, 'ArduinoBot')
) )
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs:
artifact: ${{ steps.configuration.outputs.artifact }}
path: ${{ steps.configuration.outputs.path }}
filename: ${{ steps.configuration.outputs.filename }}
steps: steps:
- name: Set configuration outputs
id: configuration
run: |
echo "::set-output name=artifact::diff"
echo "::set-output name=path::${{ runner.temp }}"
echo "::set-output name=filename::diff.txt"
- name: Comment on comment trigger to provide feedback - name: Comment on comment trigger to provide feedback
if: github.event_name == 'issue_comment' if: github.event_name == 'issue_comment'
uses: octokit/request-action@v2.x uses: octokit/request-action@v2.x
@ -48,24 +60,6 @@ jobs:
You can see the progress here: You can see the progress here:
https://github.com/${{ github.repository_owner }}/${{ github.event.repository.name }}/actions/workflows/manage-prs.yml https://github.com/${{ github.repository_owner }}/${{ github.event.repository.name }}/actions/workflows/manage-prs.yml
diff:
needs:
- enabled
runs-on: ubuntu-latest
outputs:
artifact: ${{ steps.configuration.outputs.artifact }}
path: ${{ steps.configuration.outputs.path }}
filename: ${{ steps.configuration.outputs.filename }}
steps:
- name: Set configuration outputs
id: configuration
run: |
echo "::set-output name=artifact::diff"
echo "::set-output name=path::${{ runner.temp }}"
echo "::set-output name=filename::diff.txt"
- name: Get PR diff - name: Get PR diff
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -87,7 +81,6 @@ jobs:
parse: parse:
needs: needs:
- enabled
- diff - diff
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -133,7 +126,6 @@ jobs:
label: label:
needs: needs:
- enabled
- parse - parse
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -153,7 +145,6 @@ jobs:
check-submissions: check-submissions:
name: Check ${{ matrix.submission.submissionURL }} name: Check ${{ matrix.submission.submissionURL }}
needs: needs:
- enabled
- parse - parse
if: needs.parse.outputs.type == 'submission' if: needs.parse.outputs.type == 'submission'
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -264,7 +255,6 @@ jobs:
check-submissions-fail: check-submissions-fail:
needs: needs:
- enabled
- check-submissions - check-submissions
if: failure() # This job will only run if the submission checks failed if: failure() # This job will only run if the submission checks failed
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -294,7 +284,6 @@ jobs:
merge: merge:
needs: needs:
- enabled
- parse - parse
- check-submissions - check-submissions
if: success() # This job will only run if the submission checks passed if: success() # This job will only run if the submission checks passed
@ -351,7 +340,6 @@ jobs:
request-review: request-review:
needs: needs:
- enabled
- parse - parse
if: needs.parse.outputs.type != 'submission' # These request types can't be automatically approved. if: needs.parse.outputs.type != 'submission' # These request types can't be automatically approved.
runs-on: ubuntu-latest runs-on: ubuntu-latest