From 0915099ae90f734ee77d7fde71d42e904f9e6cee Mon Sep 17 00:00:00 2001 From: Kanad Gupta Date: Wed, 13 Sep 2023 09:48:40 -0500 Subject: [PATCH] fix: use `actions/checkout@v4` everywhere --- .github/workflows/ci.yml | 8 ++--- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/docs.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/simple.yml | 2 +- .../docs/__snapshots__/index.test.ts.snap | 6 ++-- .../openapi/__snapshots__/index.test.ts.snap | 12 +++---- .../__snapshots__/validate.test.ts.snap | 6 ++-- .../lib/__snapshots__/createGHA.test.ts.snap | 32 +++++++++---------- .../lib/__snapshots__/createGHA.test.ts.snap | 32 +++++++++---------- .../openapi/__snapshots__/index.test.ts.snap | 2 +- .../__snapshots__/validate.test.ts.snap | 2 +- documentation/github-actions-docs-example.md | 2 +- .../github-actions-openapi-example.md | 2 +- documentation/legacy-github-action.md | 2 +- documentation/rdme.md | 2 +- src/lib/createGHA/baseFile.ts | 2 +- 17 files changed, 59 insertions(+), 59 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e9c6845b..2cb44fb1e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: - 20 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 @@ -36,7 +36,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install deps run: npm ci @@ -52,12 +52,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout GitHub Action - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: rdme-repo - name: Checkout external repo containing OpenAPI file - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: oas-examples-repo repository: readmeio/oas-examples diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 23a2df069..e83f70208 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Initialize CodeQL uses: github/codeql-action/init@v2 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index bbf338646..7f84a753d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout this repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install and build rdme deps run: npm ci && npm run build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e05a7f902..fcbc28c75 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: id-token: write packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.RELEASE_GH_TOKEN }} diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index bfccd1847..cb30dd071 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout GitHub Action - uses: actions/checkout@v3 + uses: actions/checkout@v4 # This is a simple example that runs our `validate` command on a local file. - name: Run `openapi:validate` command diff --git a/__tests__/cmds/docs/__snapshots__/index.test.ts.snap b/__tests__/cmds/docs/__snapshots__/index.test.ts.snap index 94d3fe82c..3f7082f4c 100644 --- a/__tests__/cmds/docs/__snapshots__/index.test.ts.snap +++ b/__tests__/cmds/docs/__snapshots__/index.test.ts.snap @@ -32,7 +32,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`docs\` command 🚀 uses: readmeio/rdme@v7 @@ -73,7 +73,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`docs\` command 🚀 uses: readmeio/rdme@v7 @@ -114,7 +114,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`docs\` command 🚀 uses: readmeio/rdme@v7 diff --git a/__tests__/cmds/openapi/__snapshots__/index.test.ts.snap b/__tests__/cmds/openapi/__snapshots__/index.test.ts.snap index 2666c2946..8c7b92fb4 100644 --- a/__tests__/cmds/openapi/__snapshots__/index.test.ts.snap +++ b/__tests__/cmds/openapi/__snapshots__/index.test.ts.snap @@ -32,7 +32,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`openapi\` command 🚀 uses: readmeio/rdme@v7 @@ -73,7 +73,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`openapi\` command 🚀 uses: readmeio/rdme@v7 @@ -114,7 +114,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`openapi\` command 🚀 uses: readmeio/rdme@v7 @@ -155,7 +155,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`openapi\` command 🚀 uses: readmeio/rdme@v7 @@ -196,7 +196,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`openapi\` command 🚀 uses: readmeio/rdme@v7 @@ -237,7 +237,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`openapi\` command 🚀 uses: readmeio/rdme@v7 diff --git a/__tests__/cmds/openapi/__snapshots__/validate.test.ts.snap b/__tests__/cmds/openapi/__snapshots__/validate.test.ts.snap index 758153b6c..9ce02c688 100644 --- a/__tests__/cmds/openapi/__snapshots__/validate.test.ts.snap +++ b/__tests__/cmds/openapi/__snapshots__/validate.test.ts.snap @@ -28,7 +28,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`openapi:validate\` command 🚀 uses: readmeio/rdme@v7 @@ -65,7 +65,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`openapi:validate\` command 🚀 uses: readmeio/rdme@v7 @@ -102,7 +102,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`openapi:validate\` command 🚀 uses: readmeio/rdme@v7 diff --git a/__tests__/lib/__snapshots__/createGHA.test.ts.snap b/__tests__/lib/__snapshots__/createGHA.test.ts.snap index c641aed88..93dcfdd30 100644 --- a/__tests__/lib/__snapshots__/createGHA.test.ts.snap +++ b/__tests__/lib/__snapshots__/createGHA.test.ts.snap @@ -32,7 +32,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`changelogs\` command 🚀 uses: readmeio/rdme@v7 @@ -73,7 +73,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`changelogs\` command 🚀 uses: readmeio/rdme@v7 @@ -114,7 +114,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`changelogs\` command 🚀 uses: readmeio/rdme@v7 @@ -155,7 +155,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`changelogs\` command 🚀 uses: readmeio/rdme@v7 @@ -196,7 +196,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`custompages\` command 🚀 uses: readmeio/rdme@v7 @@ -237,7 +237,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`custompages\` command 🚀 uses: readmeio/rdme@v7 @@ -278,7 +278,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`custompages\` command 🚀 uses: readmeio/rdme@v7 @@ -319,7 +319,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`custompages\` command 🚀 uses: readmeio/rdme@v7 @@ -360,7 +360,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`docs\` command 🚀 uses: readmeio/rdme@v7 @@ -401,7 +401,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`docs\` command 🚀 uses: readmeio/rdme@v7 @@ -442,7 +442,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`docs\` command 🚀 uses: readmeio/rdme@v7 @@ -483,7 +483,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`docs\` command 🚀 uses: readmeio/rdme@v7 @@ -524,7 +524,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`openapi\` command 🚀 uses: readmeio/rdme@v7 @@ -565,7 +565,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`openapi\` command 🚀 uses: readmeio/rdme@v7 @@ -602,7 +602,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`openapi:validate\` command 🚀 uses: readmeio/rdme@v7 @@ -639,7 +639,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`openapi:validate\` command 🚀 uses: readmeio/rdme@v7 diff --git a/__tests__/single-threaded/lib/__snapshots__/createGHA.test.ts.snap b/__tests__/single-threaded/lib/__snapshots__/createGHA.test.ts.snap index c641aed88..93dcfdd30 100644 --- a/__tests__/single-threaded/lib/__snapshots__/createGHA.test.ts.snap +++ b/__tests__/single-threaded/lib/__snapshots__/createGHA.test.ts.snap @@ -32,7 +32,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`changelogs\` command 🚀 uses: readmeio/rdme@v7 @@ -73,7 +73,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`changelogs\` command 🚀 uses: readmeio/rdme@v7 @@ -114,7 +114,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`changelogs\` command 🚀 uses: readmeio/rdme@v7 @@ -155,7 +155,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`changelogs\` command 🚀 uses: readmeio/rdme@v7 @@ -196,7 +196,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`custompages\` command 🚀 uses: readmeio/rdme@v7 @@ -237,7 +237,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`custompages\` command 🚀 uses: readmeio/rdme@v7 @@ -278,7 +278,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`custompages\` command 🚀 uses: readmeio/rdme@v7 @@ -319,7 +319,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`custompages\` command 🚀 uses: readmeio/rdme@v7 @@ -360,7 +360,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`docs\` command 🚀 uses: readmeio/rdme@v7 @@ -401,7 +401,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`docs\` command 🚀 uses: readmeio/rdme@v7 @@ -442,7 +442,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`docs\` command 🚀 uses: readmeio/rdme@v7 @@ -483,7 +483,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`docs\` command 🚀 uses: readmeio/rdme@v7 @@ -524,7 +524,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`openapi\` command 🚀 uses: readmeio/rdme@v7 @@ -565,7 +565,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`openapi\` command 🚀 uses: readmeio/rdme@v7 @@ -602,7 +602,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`openapi:validate\` command 🚀 uses: readmeio/rdme@v7 @@ -639,7 +639,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`openapi:validate\` command 🚀 uses: readmeio/rdme@v7 diff --git a/__tests__/single-threaded/openapi/__snapshots__/index.test.ts.snap b/__tests__/single-threaded/openapi/__snapshots__/index.test.ts.snap index 39a76ef75..3381872ce 100644 --- a/__tests__/single-threaded/openapi/__snapshots__/index.test.ts.snap +++ b/__tests__/single-threaded/openapi/__snapshots__/index.test.ts.snap @@ -32,7 +32,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`openapi\` command 🚀 uses: readmeio/rdme@v7 diff --git a/__tests__/single-threaded/openapi/__snapshots__/validate.test.ts.snap b/__tests__/single-threaded/openapi/__snapshots__/validate.test.ts.snap index 44d270c20..82a90cd88 100644 --- a/__tests__/single-threaded/openapi/__snapshots__/validate.test.ts.snap +++ b/__tests__/single-threaded/openapi/__snapshots__/validate.test.ts.snap @@ -28,7 +28,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`openapi:validate\` command 🚀 uses: readmeio/rdme@v7 diff --git a/documentation/github-actions-docs-example.md b/documentation/github-actions-docs-example.md index 26d49bbc6..bcd31c5f6 100644 --- a/documentation/github-actions-docs-example.md +++ b/documentation/github-actions-docs-example.md @@ -50,7 +50,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout this repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Run GitHub Action to sync docs in `documentation` directory - name: GitHub Action diff --git a/documentation/github-actions-openapi-example.md b/documentation/github-actions-openapi-example.md index 1f0bafdd3..9512885eb 100644 --- a/documentation/github-actions-openapi-example.md +++ b/documentation/github-actions-openapi-example.md @@ -97,7 +97,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout this repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Run GitHub Action to sync OpenAPI file at ./path-to-file.json - name: GitHub Action diff --git a/documentation/legacy-github-action.md b/documentation/legacy-github-action.md index 60b9df7dd..8118d6096 100644 --- a/documentation/legacy-github-action.md +++ b/documentation/legacy-github-action.md @@ -74,7 +74,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: readmeio/github-readme-sync@v2 with: readme-oas-key: 'unique-key-from-dashboard' diff --git a/documentation/rdme.md b/documentation/rdme.md index 2f2f6ae92..8eee10ba9 100644 --- a/documentation/rdme.md +++ b/documentation/rdme.md @@ -179,7 +179,7 @@ We recommend using the [quick start](#quick-start) to get started with GitHub Ac ```yml # Required in order for the GitHub Action to access your repo's contents -- uses: actions/checkout@v3 +- uses: actions/checkout@v4 # Runs the `rdme` command on your repo's contents - uses: readmeio/rdme@RDME_VERSION diff --git a/src/lib/createGHA/baseFile.ts b/src/lib/createGHA/baseFile.ts index 30ac0a73e..8ceb4d5d1 100644 --- a/src/lib/createGHA/baseFile.ts +++ b/src/lib/createGHA/baseFile.ts @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repo 📚 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run \`{{command}}\` command 🚀 uses: readmeio/rdme@{{rdmeVersion}}