From f26aa73b898a81121d85867ee94c08fcf70028df Mon Sep 17 00:00:00 2001 From: gretzke Date: Thu, 25 Jul 2024 17:14:04 +0200 Subject: [PATCH 1/3] fix github actions warnings + test --- .github/workflows/update-submodules.yaml | 20 ++++++++++++-------- src/pkgs/universal-router | 2 +- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/update-submodules.yaml b/.github/workflows/update-submodules.yaml index 78be08a..2e7c5dc 100644 --- a/.github/workflows/update-submodules.yaml +++ b/.github/workflows/update-submodules.yaml @@ -7,8 +7,8 @@ on: - staging - dev schedule: - # Run this workflow daily at 03:17 UTC - - cron: "17 3 * * *" + # Run this workflow hourly at *:17 UTC + - cron: "17 * * * *" jobs: update-submodules: @@ -30,15 +30,19 @@ jobs: git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" - - name: Setup SSH - uses: webfactory/ssh-agent@v0.8.0 - with: - ssh-private-key: ${{ secrets.DEPLOY_KEY }} - - name: Check for Changes id: git-check run: | - echo "::set-output name=changes::$(git status --porcelain)" + if [ -n "$(git status --porcelain)" ]; then + echo "changes=changes present" >> $GITHUB_OUTPUT + else + echo "changes=" >> $GITHUB_OUTPUT + fi + + - name: Setup SSH + uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.DEPLOY_KEY }} - name: Commit and Push if Changes are Present if: steps.git-check.outputs.changes != '' diff --git a/src/pkgs/universal-router b/src/pkgs/universal-router index 4cf9607..228f2d1 160000 --- a/src/pkgs/universal-router +++ b/src/pkgs/universal-router @@ -1 +1 @@ -Subproject commit 4cf96077ba21dbbbbbc8ffa8c549648f69623fbc +Subproject commit 228f2d151a5fc99836d72ae00f81db92cdb44bd3 From ee70ad7d1d3355e73af408f86487d7262fa184a9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 25 Jul 2024 15:20:37 +0000 Subject: [PATCH 2/3] Update submodules --- src/pkgs/universal-router | 2 +- src/pkgs/v4-periphery | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkgs/universal-router b/src/pkgs/universal-router index 228f2d1..4cf9607 160000 --- a/src/pkgs/universal-router +++ b/src/pkgs/universal-router @@ -1 +1 @@ -Subproject commit 228f2d151a5fc99836d72ae00f81db92cdb44bd3 +Subproject commit 4cf96077ba21dbbbbbc8ffa8c549648f69623fbc diff --git a/src/pkgs/v4-periphery b/src/pkgs/v4-periphery index dcadfc7..ffde495 160000 --- a/src/pkgs/v4-periphery +++ b/src/pkgs/v4-periphery @@ -1 +1 @@ -Subproject commit dcadfc75406b6b6d9bacdf9a897413af35764f41 +Subproject commit ffde495e50097b602cd57d69f9597e205b560fdf From 8491bddc1fd38e49f65c0dfc8e0493a483233c25 Mon Sep 17 00:00:00 2001 From: gretzke Date: Thu, 25 Jul 2024 17:39:33 +0200 Subject: [PATCH 3/3] add manual trigger to workflow --- .github/workflows/update-submodules.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-submodules.yaml b/.github/workflows/update-submodules.yaml index 2e7c5dc..6a8e776 100644 --- a/.github/workflows/update-submodules.yaml +++ b/.github/workflows/update-submodules.yaml @@ -1,6 +1,7 @@ name: Update Submodules on: + workflow_dispatch: push: branches: - main