From 9f4bc7e89f698ce28942c23b458fcfe8d61d13be Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Fri, 9 Aug 2019 12:34:54 +0100 Subject: [PATCH] Migrate the Github Actions to the new YAML syntax --- .github/main.workflow | 36 ------------------- ...-prs-opened-by-first-time-contributors.yml | 16 +++++++++ ...-fixed-issues-when-pull-request-opened.yml | 16 +++++++++ ...request-milestone-merged-pull-requests.yml | 12 +++++++ 4 files changed, 44 insertions(+), 36 deletions(-) delete mode 100644 .github/main.workflow create mode 100644 .github/workflows/pull_request-add-the-first-time-contributor-label-to-prs-opened-by-first-time-contributors.yml create mode 100644 .github/workflows/pull_request-assign-fixed-issues-when-pull-request-opened.yml create mode 100644 .github/workflows/pull_request-milestone-merged-pull-requests.yml diff --git a/.github/main.workflow b/.github/main.workflow deleted file mode 100644 index 50f5e8cb927036..00000000000000 --- 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 00000000000000..d5b8fbbe2e07bd --- /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 00000000000000..2b4f0ac9ec4e71 --- /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 00000000000000..6487a9ed13b7de --- /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 }}