Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to checkout v3 #60

Merged
merged 1 commit into from
Aug 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/announce-a-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -26,15 +26,15 @@ jobs:
name: Lint python commands
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: pylint
run: make pylint

validate-docker-image-builds:
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 ."

Expand All @@ -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
6 changes: 3 additions & 3 deletions .github/workflows/prepare-for-a-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand All @@ -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 }}
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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.

Expand Down
Loading