-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (59 loc) · 1.98 KB
/
update-dependencies.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
name: Update Dependencies
on:
push:
branches: [ master ]
schedule:
- cron: "0 1 * * *"
- cron: "0 7 * * *"
- cron: "0 13 * * *"
- cron: "0 19 * * *"
jobs:
Update:
runs-on: ubuntu-latest
steps:
- name: checking out code
uses: actions/checkout@v4
with:
ref: master
token: ${{ secrets.GITHUB_TOKEN }}
lfs: false
submodules: true
clean: false
fetch-depth: 0
#persist-credentials: false
- name: "Import bot's GPG key for signing commits"
id: import-gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.ACTION_COMMIT_SING_PRIVATE_KEY }}
passphrase: ${{ secrets.ACTION_COMMIT_SING_PASS }}
git_config_global: true
git_user_signingkey: true
git_commit_gpgsign: true
- name: Extract commit data
uses: rlespinasse/git-commit-data-action@v1.x
- name: Update submodules
id: mod
run: |
git config --global user.name "Madman10K"
git config --global user.email "contact@madladsquad.com"
git fetch --all
git checkout auto || git checkout -b auto
o=$(git submodule update --remote --merge)
echo "out=${o:0:1}?" >> $GITHUB_OUTPUT
- name: Commit
if: "steps.mod.outputs.out != '?'"
id: commit
run: |
(git add . && git commit -m "auto" && git push origin auto && echo "com=+" >> $GITHUB_OUTPUT) || echo "com=?" >> $GITHUB_OUTPUT
- name: Test
run: "echo '${{ steps.mod.outputs.out }} ${{ steps.commits.outputs.com }}!'"
- name: Create PR
if: "steps.mod.outputs.out != '?' && steps.commit.outputs.com != '?'"
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.ACTION_ISSUE_SECRET }}
with:
filename: .github/auto-issue-template.md
update_existing: true
search_existing: open