1
0
mirror of https://github.com/arduino/library-registry.git synced 2025-07-29 14:01:15 +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
jobs:
enabled:
diff:
if: >
github.event_name == 'pull_request_target' ||
(
@ -30,7 +30,19 @@ jobs:
contains(github.event.comment.body, 'ArduinoBot')
)
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: Comment on comment trigger to provide feedback
if: github.event_name == 'issue_comment'
uses: octokit/request-action@v2.x
@ -48,24 +60,6 @@ jobs:
You can see the progress here:
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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -87,7 +81,6 @@ jobs:
parse:
needs:
- enabled
- diff
runs-on: ubuntu-latest
@ -133,7 +126,6 @@ jobs:
label:
needs:
- enabled
- parse
runs-on: ubuntu-latest
@ -153,7 +145,6 @@ jobs:
check-submissions:
name: Check ${{ matrix.submission.submissionURL }}
needs:
- enabled
- parse
if: needs.parse.outputs.type == 'submission'
runs-on: ubuntu-latest
@ -264,7 +255,6 @@ jobs:
check-submissions-fail:
needs:
- enabled
- check-submissions
if: failure() # This job will only run if the submission checks failed
runs-on: ubuntu-latest
@ -294,7 +284,6 @@ jobs:
merge:
needs:
- enabled
- parse
- check-submissions
if: success() # This job will only run if the submission checks passed
@ -351,7 +340,6 @@ jobs:
request-review:
needs:
- enabled
- parse
if: needs.parse.outputs.type != 'submission' # These request types can't be automatically approved.
runs-on: ubuntu-latest