Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b6a4727

Browse files
tboergercloudpunkz
authored andcommittedJan 27, 2025·
ci: add cloudpunks sync workflow
1 parent b315b35 commit b6a4727

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed
 

‎.github/settings.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
repository:
3-
name: modprobe
3+
name: ansible-modprobe
44
description: Ansible role to load or unload kernel modules
55
topics: ansible, role, ansible-role, hacktoberfest
66

‎.github/workflows/cloudpunks.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
name: cloudpunks
3+
4+
"on":
5+
workflow_dispatch:
6+
schedule:
7+
- cron: "0 8 * * *"
8+
9+
jobs:
10+
cloudpunks:
11+
runs-on: ubuntu-latest
12+
if: github.repository_owner == 'cloudpunks'
13+
14+
steps:
15+
- name: Checkout source
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 100
19+
token: ${{ secrets.BOT_ACCESS_TOKEN }}
20+
21+
- name: Git config
22+
run: |
23+
git config --global user.email "ops@cloudpunks.de"
24+
git config --global user.name "GitHub Actions"
25+
26+
- name: Upstream remote
27+
run: git remote add upstream https://github.com/rolehippie/modprobe.git
28+
29+
- name: Fetch all
30+
run: git fetch --all --tags
31+
32+
- name: Checkout master
33+
run: git checkout master
34+
35+
- name: Rebase master
36+
run: |
37+
git rebase upstream/master
38+
39+
- name: Push tags
40+
run: git push --tags origin
41+
42+
- name: Push branch
43+
run: git push --force origin
44+
45+
...

0 commit comments

Comments
 (0)
Please sign in to comment.