feat(ci): make f38 the default branch (#393)

* feat(ci): make f38 the default branch

* feat(ci): turn off autoupdate for f37

* fix(ci): turn off sync
This commit is contained in:
madomado
2023-04-23 13:25:44 +08:00
committed by GitHub
parent 4c22fb6a23
commit 154be05313
6 changed files with 14 additions and 17 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ jobs:
lint:
runs-on: ubuntu-latest
container:
image: ghcr.io/terrapkg/builder:main
image: ghcr.io/terrapkg/builder:f38
steps:
- name: Checkout repository
uses: actions/checkout@v3
@@ -4,13 +4,14 @@ on:
types:
- closed
branches:
- f39
- f38
jobs:
sync:
strategy:
matrix:
branch: ["f37", "f38"]
branch: ["f37"]
fail-fast: false
if: github.event.pull_request.merged == true && !contains(github.event.pull_request.labels.*.name, 'nosync')
runs-on: ubuntu-latest
steps:
+1 -2
View File
@@ -3,7 +3,6 @@ name: Push comps updates
on:
push:
branches:
- f39
- f38
- f37
paths:
@@ -14,7 +13,7 @@ jobs:
update-comps:
runs-on: ubuntu-latest
container:
image: ghcr.io/terrapkg/builder:main
image: ghcr.io/terrapkg/builder:38
steps:
- uses: actions/checkout@v3
- id: get-branch
+1 -1
View File
@@ -8,7 +8,7 @@ jobs:
autoupdate:
runs-on: ubuntu-latest
container:
image: ghcr.io/terrapkg/builder:main
image: ghcr.io/terrapkg/builder:38
options: --cap-add=SYS_ADMIN --privileged
steps:
- name: Checkout
+6 -10
View File
@@ -8,7 +8,7 @@ jobs:
autoupdate:
runs-on: ubuntu-latest
container:
image: ghcr.io/terrapkg/builder:main
image: ghcr.io/terrapkg/builder:38
options: --cap-add=SYS_ADMIN --privileged
steps:
- name: Checkout
@@ -39,14 +39,10 @@ jobs:
git config user.signingkey "${{ runner.temp }}/signing_key"
msg="bump: $(git status | grep modified | sed -r 's@.+/([^/]+)/[^/]+\n?@\1 @g' | tr -d '\n')"
git commit -S -a -m "$msg"
git format-patch HEAD^
git checkout f38
git apply *.patch || true
git add anda
git commit -S -a -m "$msg"
git checkout f37
git apply *.patch || true
git add anda
git commit -S -a -m "$msg"
# git format-patch HEAD^
# git checkout f37
# git apply *.patch || true
# git add *
# git commit -S -a -m "$msg"
git push -u origin --all
fi