-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (40 loc) · 1.12 KB
/
submodule-version.yml
File metadata and controls
51 lines (40 loc) · 1.12 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
49
50
51
name: submodule version
on:
push:
branches:
- main
pull_request:
jobs:
doshit:
runs-on: ubuntu-22.04
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- uses: actions/checkout@v3
- name: refactor
run: mv readme.md addons/IntCut/
- name: remove
shell: bash
run: |
shopt -s extglob
rm -rf !(addons|LICENSE)
ls addons/
- name: movetoroot
run: mv addons/IntCut/* .
- name: cleanup
run: rm -rf addons/
- name: gitshit
run: |
git config user.name "$(git log -n 1 --pretty=format:%an)"
git config user.email "$(git log -n 1 --pretty=format:%ae)"
git add -A
git commit -m "gitshit"
git push --force origin HEAD:submodule-version
- name: deploy
uses: stefanzweifel/git-auto-commit-action@v4
env:
GITHUB_TOKEN: ${{ secrets.IC_SM_TOK }}
with:
branch: submodule-version