From e82261f914bcbfe20e6c0816569e8a695b1fd242 Mon Sep 17 00:00:00 2001 From: Falk Puschner Date: Wed, 13 Apr 2022 09:04:47 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=20Add=20autodev=20action=20(#18)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * :sparkles: add autodev action * :construction_worker: update allow list for cla * :art: use boolean * :art: using secrets section * :art: change job naming * :arrow_down: downgrade autodev action * :art: change default base branch --- .github/workflows/cla.yml | 2 +- .github/workflows/template_autodev.yml | 56 ++++++++++++++++++++++++++ README.md | 22 ++++++++++ 3 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/template_autodev.yml diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 7125e207..03e99160 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -20,4 +20,4 @@ jobs: path-to-signatures: 'signatures/version1/cla.json' path-to-document: 'https://github.com/Staffbase/template-oss-repository/blob/main/CLA.md' branch: 'signatures' - allowlist: 0x46616c6b,axdotl,flaxel,bot* + allowlist: 0x46616c6b,axdotl,flaxel,*bot* diff --git a/.github/workflows/template_autodev.yml b/.github/workflows/template_autodev.yml new file mode 100644 index 00000000..d7c9e6e2 --- /dev/null +++ b/.github/workflows/template_autodev.yml @@ -0,0 +1,56 @@ +name: Autodev +on: + workflow_call: + inputs: + base: + default: 'main' + required: false + type: string + branch: + default: 'dev' + required: false + type: string + comments: + default: false + required: false + type: boolean + email: + default: 'staffbot@staffbase.com' + required: false + type: string + label: + default: 'dev' + required: false + type: string + user: + default: 'AutoDev Action' + required: false + type: string + secrets: + token: + required: true + +jobs: + autodev: + + name: Build Dev Branch + runs-on: ubuntu-20.04 + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + token: ${{ secrets.token }} + fetch-depth: 0 + + - name: Autodev + uses: staffbase/autodev-action@v1.2.3 + with: + base: ${{ inputs.base }} + branch: ${{ inputs.branch }} + comments: ${{ inputs.comments }} + email: ${{ inputs.email }} + label: ${{ inputs.label }} + optimistic: true + token: ${{ secrets.token }} + user: ${{ inputs.user }} diff --git a/README.md b/README.md index b1df251c..389ba90d 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,28 @@ jobs: In the next sections you can find examples for the template workflows. For more information, please take a look at the templates. +### AutoDev + +
+The action can be used to merge labeled pull requests into a branch. + +```yml +name: Autodev +on: + push: + branches-ignore: + - dev + pull_request: + types: [labeled, unlabeled, opened, closed] + +jobs: + autodev: + uses: Staffbase/gha-workflows/.github/workflows/template_autodev.yml@ + secrets: + token: ${{ secrets.GITHUB_TOKEN }} +``` +
+ ### Release Drafter