diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a1c48b4..253cd03 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: name: Lint Markdown content steps: - name: Checkout the repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Markdown lint for README uses: docker://avtodev/markdown-lint:v1 with: @@ -25,16 +25,16 @@ jobs: name: Lint for editorconfig violations steps: - name: Checkout the repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Check for editorconfig violations - uses: editorconfig-checker/action-editorconfig-checker@v1 + uses: editorconfig-checker/action-editorconfig-checker@v2 lint-markdown-toc: runs-on: ubuntu-latest name: Lint for Table of Contents steps: - name: Checkout the repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: 16 diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 49e8687..ecd2bbe 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -14,19 +14,17 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@master with: toolchain: stable components: rustfmt - uses: Swatinem/rust-cache@v2 - - name: Get random cache id - run: echo "CACHE_ID=$((RANDOM))" >> $GITHUB_ENV - shell: bash - - uses: pat-s/always-upload-cache@v3.0.11 + - name: Load results cache + uses: pat-s/always-upload-cache@v3.0.11 with: path: results/*.yaml - key: results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}-${{ env.CACHE_ID }} + key: results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}-${{ github.run_id }} restore-keys: | results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}- results-${{ hashFiles('Cargo.lock') }}-