From fd2e8867d3c676c2ea493965c98163311bb141ca Mon Sep 17 00:00:00 2001 From: donniean <12584040+donniean@users.noreply.github.com> Date: Wed, 17 Jul 2024 00:29:54 +0800 Subject: [PATCH] ci: add github-actions to .github/dependabot.yml (#455) * ci: add github-actions to .github/dependabot.yml Signed-off-by: donniean * chore: update scripts/github.deps.upgrade.sh Signed-off-by: donniean --------- Signed-off-by: donniean --- .github/dependabot.yml | 9 ++++++++- scripts/github.deps.upgrade.sh | 5 +++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 0602e186..c2e9a6ce 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,6 +1,13 @@ version: 2 updates: - package-ecosystem: npm - directory: '/' + directories: + - '/' + schedule: + interval: daily + + - package-ecosystem: github-actions + directories: + - '/' schedule: interval: daily diff --git a/scripts/github.deps.upgrade.sh b/scripts/github.deps.upgrade.sh index 5b0d734d..04da7989 100644 --- a/scripts/github.deps.upgrade.sh +++ b/scripts/github.deps.upgrade.sh @@ -27,6 +27,11 @@ pr() { # pr_url=$(echo "$pr_output" | grep -o 'https://github\.com/[^ ]*') gh pr merge --auto --squash gh pr view --web + + # checkout and pull + git checkout main + git branch -D chore + git pull --all --prune } names=(