1
0
mirror of https://github.com/arduino/library-registry.git synced 2025-07-31 01:03:09 +03:00

Remove unnecessary enabled job from "Manage PRs" workflow

This job was an artifact from an earlier version of the workflow, and was no longer necessary. It only added additional
code.
This commit is contained in:
per1234
2021-04-26 14:14:35 -07:00
parent 23c59049c4
commit de21247de0

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