-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (33 loc) · 933 Bytes
/
osc_commit.yml
File metadata and controls
42 lines (33 loc) · 933 Bytes
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
name: osc commit
on:
push:
branches: ["master"]
workflow_dispatch:
concurrency: staging_environment
jobs:
run:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: init config
env:
OSCRC: ${{secrets.OSCRC}}
run: |
sudo apt-get install -y osc
mkdir -p ~/.config/osc/
echo "$OSCRC" > ~/.config/osc/oscrc
- uses: actions/checkout@v3
- name: update lib
run: cd lib && bash "../.github/workflows/commit.bash"
- name: update app
run: cd app && bash "../.github/workflows/commit.bash"
- name: osc up
run: |
sh -c 'cd lib && osc up'
sh -c 'cd app && osc up'
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: auot osc commit"
commit_user_name: myml
commit_user_email: wurongjie@deepin.org