-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.08 KB
/
fork.yaml
File metadata and controls
48 lines (40 loc) · 1.08 KB
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
46
47
48
name: Fork
on:
schedule:
- cron: "0 0 * * *"
push:
branches:
- main
workflow_dispatch:
jobs:
fork:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
- name: Clean working tree
run: |
shopt -s extglob
rm -rf !( .git | .github )
- name: Fetch upstream
run: |
git remote add upstream https://go.googlesource.com/sys || true
git fetch upstream
git reset --hard upstream/master
git checkout origin/main .github/
- name: Modify
working-directory: .github/workflows
run: go run main.go ../../unix
- name: Commit
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "Panic at all syscalls in unix"
git tag v0.0.1
- name: Push
run: |
git push --force
git push --force origin v0.0.1