Skip to content

Commit f1c1fc3

Browse files
Merge pull request #1 from devops-infra/feat/gh-actions
💚 Add GitHub Actions
2 parents 6e09ba5 + 16c1016 commit f1c1fc3

File tree

5 files changed

+163
-2
lines changed

5 files changed

+163
-2
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Owner of everything
2+
* @ChristophShyper @devops-infra/christophshyper

.github/dependabot.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: 2
2+
updates:
3+
4+
# Maintain dependencies for GitHub Actions
5+
- package-ecosystem: github-actions
6+
directory: "/"
7+
target-branch: master
8+
schedule:
9+
interval: daily
10+
assignees:
11+
- ChristophShyper
12+
labels:
13+
- automatic
14+
- dependency
15+
16+
# Enable version updates for pip
17+
- package-ecosystem: pip
18+
directory: "/"
19+
target-branch: master
20+
schedule:
21+
interval: daily
22+
assignees:
23+
- ChristophShyper
24+
labels:
25+
- automatic
26+
- dependency

.github/workflows/PUSH-MASTER.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Push to master
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
labels:
10+
name: Repo labels
11+
runs-on: ubuntu-24.04-arm
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Labels' config
17+
shell: bash
18+
run: |
19+
mkdir -p .tmp
20+
curl -LsS https://raw.githubusercontent.com/devops-infra/.github/master/.github/labels.yml -o .tmp/labels.yml
21+
22+
- name: Update labels
23+
uses: crazy-max/ghaction-github-labeler@v5.2.0
24+
with:
25+
github-token: ${{ secrets.GITHUB_TOKEN }}
26+
yaml-file: .tmp/labels.yml

.github/workflows/PUSH-OTHER.yml

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
name: Push to other branches
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- master
7+
8+
jobs:
9+
labels:
10+
name: Repo labels
11+
runs-on: ubuntu-24.04-arm
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Labels' config
17+
shell: bash
18+
run: |
19+
mkdir -p .tmp
20+
curl -LsS https://raw.githubusercontent.com/devops-infra/.github/master/.github/labels.yml -o .tmp/labels.yml
21+
22+
- name: Update labels
23+
uses: crazy-max/ghaction-github-labeler@v5.2.0
24+
with:
25+
github-token: ${{ secrets.GITHUB_TOKEN }}
26+
yaml-file: .tmp/labels.yml
27+
28+
pull_request:
29+
name: Pull Request
30+
runs-on: ubuntu-24.04-arm
31+
steps:
32+
- name: Get current date
33+
id: date
34+
run: echo "curr_date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
35+
36+
- name: Checkout
37+
uses: actions/checkout@v4
38+
with:
39+
fetch-depth: 0
40+
41+
- name: Template
42+
shell: bash
43+
run: |
44+
mkdir -p .tmp
45+
curl -LsS https://raw.githubusercontent.com/devops-infra/.github/master/PULL_REQUEST_TEMPLATE.md -o .tmp/PULL_REQUEST_TEMPLATE.md
46+
47+
- name: PR - bugfix (conditional)
48+
if: startsWith(github.ref, 'refs/heads/bug')
49+
uses: devops-infra/action-pull-request@v0.6.0
50+
with:
51+
github_token: ${{ secrets.GITHUB_TOKEN }}
52+
assignee: ${{ github.actor }}
53+
label: bugfix
54+
template: .tmp/PULL_REQUEST_TEMPLATE.md
55+
get_diff: true
56+
57+
- name: PR - dependency (conditional)
58+
if: startsWith(github.ref, 'refs/heads/dep') && !startsWith(github.ref, 'refs/heads/dependabot')
59+
uses: devops-infra/action-pull-request@v0.6.0
60+
with:
61+
github_token: ${{ secrets.GITHUB_TOKEN }}
62+
assignee: ${{ github.actor }}
63+
label: dependency
64+
template: .tmp/PULL_REQUEST_TEMPLATE.md
65+
get_diff: true
66+
67+
- name: PR - documentation (conditional)
68+
if: startsWith(github.ref, 'refs/heads/doc')
69+
uses: devops-infra/action-pull-request@v0.6.0
70+
with:
71+
github_token: ${{ secrets.GITHUB_TOKEN }}
72+
assignee: ${{ github.actor }}
73+
label: documentation
74+
template: .tmp/PULL_REQUEST_TEMPLATE.md
75+
get_diff: true
76+
77+
- name: PR - feature (conditional)
78+
if: startsWith(github.ref, 'refs/heads/feat')
79+
uses: devops-infra/action-pull-request@v0.6.0
80+
with:
81+
github_token: ${{ secrets.GITHUB_TOKEN }}
82+
assignee: ${{ github.actor }}
83+
label: feature
84+
template: .tmp/PULL_REQUEST_TEMPLATE.md
85+
get_diff: true
86+
87+
- name: PR - test (conditional)
88+
if: startsWith(github.ref, 'refs/heads/test')
89+
uses: devops-infra/action-pull-request@v0.6.0
90+
with:
91+
github_token: ${{ secrets.GITHUB_TOKEN }}
92+
assignee: ${{ github.actor }}
93+
reviewer: ${{ github.actor }}
94+
label: test
95+
template: .tmp/PULL_REQUEST_TEMPLATE.md
96+
draft: true
97+
get_diff: true
98+
99+
- name: PR - test (conditional)
100+
if: "!startsWith(github.ref, 'refs/heads/bug') && !startsWith(github.ref, 'refs/heads/dep') && !startsWith(github.ref, 'refs/heads/doc') && !startsWith(github.ref, 'refs/heads/feat') && !startsWith(github.ref, 'refs/heads/test')"
101+
uses: devops-infra/action-pull-request@v0.6.0
102+
with:
103+
github_token: ${{ secrets.GITHUB_TOKEN }}
104+
assignee: ${{ github.actor }}
105+
label: feature
106+
template: .tmp/PULL_REQUEST_TEMPLATE.md
107+
get_diff: true

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pick
2-
setuptools
1+
pick==2.4.0
2+
setuptools==75.8.0

0 commit comments

Comments
 (0)