From fb1760c5daf90d366b6d1d1640a94b3048c6560d Mon Sep 17 00:00:00 2001 From: tposejank <81495861+tposejank@users.noreply.github.com> Date: Wed, 26 Jun 2024 01:10:57 -0400 Subject: [PATCH] include submodule updating --- .github/workflows/scan.yml | 11 +++++++++++ .github/workflows/submodules.yml | 33 -------------------------------- 2 files changed, 11 insertions(+), 33 deletions(-) delete mode 100644 .github/workflows/submodules.yml diff --git a/.github/workflows/scan.yml b/.github/workflows/scan.yml index 0e195a2..6d04eab 100644 --- a/.github/workflows/scan.yml +++ b/.github/workflows/scan.yml @@ -17,6 +17,17 @@ jobs: with: submodules: 'recursive' + # Update references + - name: Git Submodule Update + run: | + git pull --recurse-submodules + git submodule update --remote --recursive + + - name: Commit changes to submodule + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: Update submodule + - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/.github/workflows/submodules.yml b/.github/workflows/submodules.yml deleted file mode 100644 index ca05608..0000000 --- a/.github/workflows/submodules.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: 'Submodules Sync' - -on: - # Allows you to run this workflow manually from the Actions tab or through HTTP API - workflow_dispatch: - -permissions: write-all - -jobs: - sync: - name: 'Submodules Sync' - runs-on: ubuntu-latest - - # Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest - defaults: - run: - shell: bash - - steps: - # Checkout the repository to the GitHub Actions runner - - name: Checkout - uses: actions/checkout@v2 - - # Update references - - name: Git Submodule Update - run: | - git pull --recurse-submodules - git submodule update --remote --recursive - - - name: Commit changes to submodule - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_message: Update submodule