Skip to content

Commit e82261f

Browse files
authored
✨ Add autodev action (#18)
* ✨ add autodev action * 👷 update allow list for cla * 🎨 use boolean * 🎨 using secrets section * 🎨 change job naming * ⬇️ downgrade autodev action * 🎨 change default base branch
1 parent 54a1af0 commit e82261f

File tree

3 files changed

+79
-1
lines changed

3 files changed

+79
-1
lines changed

.github/workflows/cla.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
path-to-signatures: 'signatures/version1/cla.json'
2121
path-to-document: 'https://github.com/Staffbase/template-oss-repository/blob/main/CLA.md'
2222
branch: 'signatures'
23-
allowlist: 0x46616c6b,axdotl,flaxel,bot*
23+
allowlist: 0x46616c6b,axdotl,flaxel,*bot*
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Autodev
2+
on:
3+
workflow_call:
4+
inputs:
5+
base:
6+
default: 'main'
7+
required: false
8+
type: string
9+
branch:
10+
default: 'dev'
11+
required: false
12+
type: string
13+
comments:
14+
default: false
15+
required: false
16+
type: boolean
17+
email:
18+
default: '[email protected]'
19+
required: false
20+
type: string
21+
label:
22+
default: 'dev'
23+
required: false
24+
type: string
25+
user:
26+
default: 'AutoDev Action'
27+
required: false
28+
type: string
29+
secrets:
30+
token:
31+
required: true
32+
33+
jobs:
34+
autodev:
35+
36+
name: Build Dev Branch
37+
runs-on: ubuntu-20.04
38+
39+
steps:
40+
- name: Checkout
41+
uses: actions/checkout@v3
42+
with:
43+
token: ${{ secrets.token }}
44+
fetch-depth: 0
45+
46+
- name: Autodev
47+
uses: staffbase/[email protected]
48+
with:
49+
base: ${{ inputs.base }}
50+
branch: ${{ inputs.branch }}
51+
comments: ${{ inputs.comments }}
52+
email: ${{ inputs.email }}
53+
label: ${{ inputs.label }}
54+
optimistic: true
55+
token: ${{ secrets.token }}
56+
user: ${{ inputs.user }}

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,28 @@ jobs:
2323
2424
In the next sections you can find examples for the template workflows. For more information, please take a look at the templates.
2525
26+
### AutoDev
27+
28+
<details>
29+
<summary>The action can be used to merge labeled pull requests into a branch.</summary>
30+
31+
```yml
32+
name: Autodev
33+
on:
34+
push:
35+
branches-ignore:
36+
- dev
37+
pull_request:
38+
types: [labeled, unlabeled, opened, closed]
39+
40+
jobs:
41+
autodev:
42+
uses: Staffbase/gha-workflows/.github/workflows/template_autodev.yml@<version>
43+
secrets:
44+
token: ${{ secrets.GITHUB_TOKEN }}
45+
```
46+
</details>
47+
2648
### Release Drafter
2749
2850
<details>

0 commit comments

Comments
 (0)