From f61880052a2fb72a0fe19995136a1f723176e594 Mon Sep 17 00:00:00 2001 From: "Sean T. Allen" Date: Fri, 18 Aug 2023 17:35:24 +0000 Subject: [PATCH] Update to checkout v3 --- .github/workflows/announce-a-release.yml | 4 ++-- .github/workflows/pr.yml | 8 ++++---- .github/workflows/prepare-for-a-release.yml | 6 +++--- .github/workflows/release.yml | 6 +++--- README.md | 16 ++++++++-------- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/announce-a-release.yml b/.github/workflows/announce-a-release.yml index 554f347..efb7de0 100644 --- a/.github/workflows/announce-a-release.yml +++ b/.github/workflows/announce-a-release.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout main - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: "main" token: ${{ secrets.RELEASE_TOKEN }} @@ -44,7 +44,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout main - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: "main" token: ${{ secrets.RELEASE_TOKEN }} diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index a08ac46..125bdf5 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -11,7 +11,7 @@ jobs: name: Lint bash, docker, markdown, and yaml runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Lint codebase uses: docker://github/super-linter:v3.8.3 env: @@ -26,7 +26,7 @@ jobs: name: Lint python commands runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: pylint run: make pylint @@ -34,7 +34,7 @@ jobs: name: Validate Docker image builds runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Docker build run: "docker build --pull ." @@ -44,6 +44,6 @@ jobs: container: image: ponylang/changelog-tool:release steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Verify CHANGELOG run: changelog-tool verify diff --git a/.github/workflows/prepare-for-a-release.yml b/.github/workflows/prepare-for-a-release.yml index 11f3113..5538943 100644 --- a/.github/workflows/prepare-for-a-release.yml +++ b/.github/workflows/prepare-for-a-release.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout main - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: "main" token: ${{ secrets.RELEASE_TOKEN }} @@ -60,7 +60,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout main - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: "main" token: ${{ secrets.RELEASE_TOKEN }} @@ -85,7 +85,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout main - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: "main" token: ${{ secrets.RELEASE_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ba02b9..bd887fe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout main - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: "main" token: ${{ secrets.RELEASE_TOKEN }} @@ -31,7 +31,7 @@ jobs: needs: - pre-artefact-creation steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Docker login run: docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" env: @@ -46,7 +46,7 @@ jobs: needs: - build-and-push-image steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: ref: "main" token: ${{ secrets.RELEASE_TOKEN }} diff --git a/README.md b/README.md index 6906255..4aa1520 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout main - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: "main" token: ${{ secrets.RELEASE_TOKEN }} @@ -112,7 +112,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout main - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: "main" token: ${{ secrets.RELEASE_TOKEN }} @@ -137,7 +137,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout main - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: "main" token: ${{ secrets.RELEASE_TOKEN }} @@ -183,7 +183,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout main - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: "main" token: ${{ secrets.RELEASE_TOKEN }} @@ -200,7 +200,7 @@ jobs: runs-on: ubuntu-latest needs: [ARTEFACT_BUILDING_JOBS_HERE] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: ref: "main" token: ${{ secrets.RELEASE_TOKEN }} @@ -252,7 +252,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout main - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: "main" token: ${{ secrets.RELEASE_TOKEN }} @@ -283,7 +283,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout main - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: "main" token: ${{ secrets.RELEASE_TOKEN }} @@ -305,7 +305,7 @@ jobs: ### Examples notes -- In the examples above, any time you see `ref: main` as part of `actions/checkout@v2` setup, you should replace `main` with the name of your default branch. +- In the examples above, any time you see `ref: main` as part of `actions/checkout@v3` setup, you should replace `main` with the name of your default branch. - The environment variable `RELEASE_TOKEN` that is required by various steps **must** be a personal access token with `public_repo` access. You can not use the `GITHUB_TOKEN` environment variable provided by GitHub's action environment. If you try to use `GITHUB_TOKEN`, no additional steps will trigger after start-a-release has completed.