mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-09 08:51:18 +00:00
Feat(github): git submodule update workflow
This commit is contained in:
6
.github/dependabot.yml
vendored
6
.github/dependabot.yml
vendored
@@ -6,9 +6,3 @@ updates:
|
|||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
|
|
||||||
# Update Git Submodules daily
|
|
||||||
- package-ecosystem: gitsubmodule
|
|
||||||
schedule:
|
|
||||||
interval: "daily"
|
|
||||||
directory: /
|
|
||||||
|
|||||||
40
.github/workflows/update-submodules.yml
vendored
Normal file
40
.github/workflows/update-submodules.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
name: Update submodules
|
||||||
|
on:
|
||||||
|
schedule: [cron: 0 6 * * 0]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-submodules:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
fetch-depth: 0
|
||||||
|
token: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
|
||||||
|
- name: Config Git User
|
||||||
|
run: |
|
||||||
|
git config --global user.name "${{ github.actor }}"
|
||||||
|
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
|
||||||
|
|
||||||
|
- name: Update submodules
|
||||||
|
run: |
|
||||||
|
if git commit -S -am"Update submodules (automated)
|
||||||
|
|
||||||
|
$(git submodule --quiet foreach \
|
||||||
|
'tag="$(git describe --tags --abbrev=0 origin/HEAD)"
|
||||||
|
if [ "$(git describe --tags)" != "$tag" ]; then
|
||||||
|
git checkout --quiet "$tag"
|
||||||
|
echo "$name" "$tag"
|
||||||
|
fi')"
|
||||||
|
then
|
||||||
|
git show --raw
|
||||||
|
git push
|
||||||
|
fi
|
||||||
5
.gitmodules
vendored
5
.gitmodules
vendored
@@ -3,25 +3,21 @@
|
|||||||
path = tools/dotbot
|
path = tools/dotbot
|
||||||
url = https://github.com/anishathalye/dotbot.git
|
url = https://github.com/anishathalye/dotbot.git
|
||||||
ignore = dirty
|
ignore = dirty
|
||||||
branch = v1.19.1
|
|
||||||
|
|
||||||
[submodule "dotbot-brew"]
|
[submodule "dotbot-brew"]
|
||||||
path = tools/dotbot-brew
|
path = tools/dotbot-brew
|
||||||
url = https://github.com/wren/dotbot-brew.git
|
url = https://github.com/wren/dotbot-brew.git
|
||||||
ignore = dirty
|
ignore = dirty
|
||||||
branch = main
|
|
||||||
|
|
||||||
[submodule "dotbot-include"]
|
[submodule "dotbot-include"]
|
||||||
path = tools/dotbot-include
|
path = tools/dotbot-include
|
||||||
url = https://gitlab.com/gnfzdz/dotbot-include.git
|
url = https://gitlab.com/gnfzdz/dotbot-include.git
|
||||||
ignore = dirty
|
ignore = dirty
|
||||||
branch = main
|
|
||||||
|
|
||||||
[submodule "config/nvim"]
|
[submodule "config/nvim"]
|
||||||
path = config/nvim
|
path = config/nvim
|
||||||
url = https://github.com/AstroNvim/AstroNvim.git
|
url = https://github.com/AstroNvim/AstroNvim.git
|
||||||
ignore = dirty
|
ignore = dirty
|
||||||
branch = v3.15.6
|
|
||||||
shallow = true
|
shallow = true
|
||||||
|
|
||||||
[submodule "cheat-community"]
|
[submodule "cheat-community"]
|
||||||
@@ -33,4 +29,3 @@
|
|||||||
path = config/tmux/plugins/tpm
|
path = config/tmux/plugins/tpm
|
||||||
url = https://github.com/tmux-plugins/tpm.git
|
url = https://github.com/tmux-plugins/tpm.git
|
||||||
ignore = dirty
|
ignore = dirty
|
||||||
branch = v3.1.0
|
|
||||||
|
|||||||
Reference in New Issue
Block a user