Skip to content

Commit

Permalink
✨ Add autodev action (#18)
Browse files Browse the repository at this point in the history
* ✨ add autodev action

* 👷 update allow list for cla

* 🎨 use boolean

* 🎨 using secrets section

* 🎨 change job naming

* ⬇️ downgrade autodev action

* 🎨 change default base branch
  • Loading branch information
flaxel authored Apr 13, 2022
1 parent 54a1af0 commit e82261f
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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*
56 changes: 56 additions & 0 deletions .github/workflows/template_autodev.yml
Original file line number Diff line number Diff line change
@@ -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: '[email protected]'
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/[email protected]
with:
base: ${{ inputs.base }}
branch: ${{ inputs.branch }}
comments: ${{ inputs.comments }}
email: ${{ inputs.email }}
label: ${{ inputs.label }}
optimistic: true
token: ${{ secrets.token }}
user: ${{ inputs.user }}
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<details>
<summary>The action can be used to merge labeled pull requests into a branch.</summary>
```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@<version>
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
```
</details>
### Release Drafter
<details>
Expand Down

0 comments on commit e82261f

Please sign in to comment.