diff --git a/.github/main.workflow b/.github/main.workflow deleted file mode 100644 index 50f5e8cb92703..0000000000000 --- a/.github/main.workflow +++ /dev/null @@ -1,36 +0,0 @@ -workflow "Milestone merged pull requests" { - on = "pull_request" - resolves = ["Milestone It"] -} - -action "Milestone It" { - uses = "./.github/actions/milestone-it" - secrets = ["GITHUB_TOKEN"] -} - -workflow "Assign fixed issues when pull request opened" { - on = "pull_request" - resolves = ["Assign Fixed Issues"] -} - -action "Filter opened" { - uses = "actions/bin/filter@0dbb077f64d0ec1068a644d25c71b1db66148a24" - args = "action opened" -} - -action "Assign Fixed Issues" { - uses = "./.github/actions/assign-fixed-issues" - needs = ["Filter opened"] - secrets = ["GITHUB_TOKEN"] -} - -workflow "Add the First-time Contributor label to PRs opened by first-time contributors" { - on = "pull_request" - resolves = ["First Time Contributor"] -} - -action "First Time Contributor" { - uses = "./.github/actions/first-time-contributor" - needs = ["Filter opened"] - secrets = ["GITHUB_TOKEN"] -} diff --git a/.github/workflows/pull_request-add-the-first-time-contributor-label-to-prs-opened-by-first-time-contributors.yml b/.github/workflows/pull_request-add-the-first-time-contributor-label-to-prs-opened-by-first-time-contributors.yml new file mode 100644 index 0000000000000..d5b8fbbe2e07b --- /dev/null +++ b/.github/workflows/pull_request-add-the-first-time-contributor-label-to-prs-opened-by-first-time-contributors.yml @@ -0,0 +1,16 @@ +on: pull_request +name: Add the First-time Contributor label to PRs opened by first-time contributors +jobs: + filterOpened: + name: Filter opened + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Filter opened + uses: actions/bin/filter@0dbb077f64d0ec1068a644d25c71b1db66148a24 + with: + args: action opened + - name: First Time Contributor + uses: ./.github/actions/first-time-contributor + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pull_request-assign-fixed-issues-when-pull-request-opened.yml b/.github/workflows/pull_request-assign-fixed-issues-when-pull-request-opened.yml new file mode 100644 index 0000000000000..2b4f0ac9ec4e7 --- /dev/null +++ b/.github/workflows/pull_request-assign-fixed-issues-when-pull-request-opened.yml @@ -0,0 +1,16 @@ +on: pull_request +name: Assign fixed issues when pull request opened +jobs: + filterOpened: + name: Filter opened + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Filter opened + uses: actions/bin/filter@0dbb077f64d0ec1068a644d25c71b1db66148a24 + with: + args: action opened + - name: Assign Fixed Issues + uses: ./.github/actions/assign-fixed-issues + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pull_request-milestone-merged-pull-requests.yml b/.github/workflows/pull_request-milestone-merged-pull-requests.yml new file mode 100644 index 0000000000000..6487a9ed13b7d --- /dev/null +++ b/.github/workflows/pull_request-milestone-merged-pull-requests.yml @@ -0,0 +1,12 @@ +on: pull_request +name: Milestone merged pull requests +jobs: + milestoneIt: + name: Milestone It + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Milestone It + uses: ./.github/actions/milestone-it + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}