Skip to content

Commit

Permalink
workflows: standardize on checkout@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
dbungert committed Sep 11, 2023
1 parent f7c5d8c commit a0c7760
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- ubuntu-daily:lunar
- ubuntu-daily:mantic
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: run
run: sudo ./scripts/test-in-lxd.sh ${{ matrix.image }} "make check"

Expand All @@ -27,14 +27,14 @@ jobs:
- ubuntu-daily:jammy # match the core snap we're running against
- ubuntu-daily:mantic # latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: lint
run: sudo ./scripts/test-in-lxd.sh ${{ matrix.image }} "make lint"

format-black:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
version: "~= 23.0"
Expand All @@ -43,7 +43,7 @@ jobs:
format-isort:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: isort/isort-action@v1
with:
isort-version: "5.12.0"
Expand All @@ -57,7 +57,7 @@ jobs:
- name: Install mypy and typeshed
run: sudo apt-get install -y python3-mypy python3-typeshed
- name: Checkout the pull request branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# When no ref is specified, a merge commit (from PR branch to target
# branch) will be checked out. Use the last commit of the PR branch
Expand All @@ -78,7 +78,7 @@ jobs:
"${{ github.event.pull_request.head.sha }}")
echo "base_commit=$ancestor" >> "$GITHUB_OUTPUT"
- name: Checkout the base commit (most recent common ancestor)
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ steps.determine_base_commit.outputs.base_commit }}
- run: git show
Expand Down

0 comments on commit a0c7760

Please sign in to comment.