forked from rolehippie/snapd
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (34 loc) · 950 Bytes
/
cloudpunks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
name: cloudpunks
"on":
workflow_dispatch:
schedule:
- cron: "0 8 * * *"
jobs:
cloudpunks:
runs-on: ubuntu-latest
if: github.repository_owner == 'cloudpunks'
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
fetch-depth: 100
token: ${{ secrets.BOT_ACCESS_TOKEN }}
- name: Git config
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
- name: Upstream remote
run: git remote add upstream https://github.com/rolehippie/snapd.git
- name: Fetch all
run: git fetch --all --tags
- name: Checkout master
run: git checkout master
- name: Rebase master
run: |
git rebase upstream/master
- name: Push tags
run: git push --tags origin
- name: Push branch
run: git push --force origin
...