diff --git a/.github/workflows/update-submodules.yml b/.github/workflows/update-submodules.yml index be42348..e37ef6a 100644 --- a/.github/workflows/update-submodules.yml +++ b/.github/workflows/update-submodules.yml @@ -5,7 +5,7 @@ name: Update submodules on: schedule: # At 04:00 on Monday and Thursday. - - cron: "0 4 * * 1,4" + - cron: "0 4 * * 1" workflow_dispatch: concurrency: @@ -22,6 +22,16 @@ jobs: steps: + - name: Clean up previous checkouts + shell: bash + run: | + rm -rf ${{ github.workspace }} + + - name: Reset file permissions + shell: bash + run: | + sudo chown -R $(whoami) ${{ github.workspace }} + - name: Checkout repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 with: