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

feat: bump actions/checkout@v3 to @v4 #105

Merged
merged 2 commits into from
Sep 21, 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
2 changes: 1 addition & 1 deletion .github/workflows/_reusable_dump_context.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ${{ matrix.runs-on }}
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || '' }} # checkout PR HEAD commit instead of merge commit
- name: Wait 30s
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_reusable_workflow_called.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
output1: ${{ steps.step1.outputs.firstword }}
output2: ${{ steps.step2.outputs.secondword }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }} # checkout PR HEAD commit instead of merge commit
- name: (Limitation) Callee can not refer caller environment variable.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/action_default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: setup env FOO
run: echo "FOO=foo" | tee -a "$GITHUB_ENV"
- uses: ./.github/actions/action-default
2 changes: 1 addition & 1 deletion .github/workflows/actionlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
- name: Run actionlint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/actionlint_reviewdog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: actionlint
uses: reviewdog/action-actionlint@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto_doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || '' }} # checkout PR HEAD commit instead of merge commit
- name: Embedding Code into README
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/aws_oidc_credential.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
matrix:
multi: [a, b, c, d, e, f, g, h, i, j]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/aws_oidc_credential_bug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# call single aws-actions/configure-aws-credentials in action.
# calling action included aws-actions/configure-aws-credentials multiple times has potential problem with credential cache issue, see https://github.com/aws-actions/configure-aws-credentials/issues/307#issuecomment-1692511296. To address this issue, you should set `unset-current-credentials: true`.
- name: Configure AWS Credentials (Role A)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ban_word_checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: bash -eu .github/scripts/lint-banwords.sh --directory ".github/workflows" --file-filter "k8s.*yaml" --definition ".github/ban-words.txt"
2 changes: 1 addition & 1 deletion .github/workflows/ban_word_conftest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: test dev
uses: instrumenta/conftest-action@ae9212d5c0c26e21eedf359e2889d0d5d39dabd4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/comment_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# 0 indicates all history
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/continue_on_error.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: exit 1
continue-on-error: true
- run: exit 1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# make change
- name: make changes
run: date +%s > src/txt/report.txt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create_tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: tag
run: git tag ${{ env.TAG }}
- name: Push changes
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/crlf_checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2 # detect on push
# you can specify which file to detect.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dotnet_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: command -v dotnet
- run: ls /usr/share/dotnet/sdk
- run: dotnet --version
Expand All @@ -45,7 +45,7 @@ jobs:
container:
image: mcr.microsoft.com/dotnet/sdk:6.0
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: dotnet build ./src/dotnet/console/ -c Debug
- run: dotnet test ./src/dotnet/console-tests/ -c Debug --logger GitHubActions
- run: dotnet publish ./src/dotnet/console/ -c Debug -o ./out/dotnet-console-container
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dotnet_build_only_tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
Expand All @@ -46,7 +46,7 @@ jobs:
container:
image: mcr.microsoft.com/dotnet/sdk:6.0
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ matrix.dotnet }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dotnet_fail_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: dotnet test ./src/dotnet/console-fail-tests/ -c Debug --logger GitHubActions
continue-on-error: true
2 changes: 1 addition & 1 deletion .github/workflows/dotnet_lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dotnet_sln_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# list of target project (tail -n +3 = skip first 2 header lines)
# https://trstringer.com/github-actions-multiline-strings/
- name: Obtain csproj to lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dump_context.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Dump environment
run: export
- name: Dump GitHub context
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/env_with_script.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: echo "GIT_TAG=${GITHUB_REF#refs/heads/}" >> "$GITHUB_ENV"
- run: echo ${{ env.GIT_TAG }}
- run: bash -eux .github/scripts/setenv.sh --ref "${GITHUB_REF#refs/heads/}"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/file_change_,matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
outputs:
changes: ${{ steps.filter.outputs.changes }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v2
id: paths-filter
with:
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Convert to json
id: json
run: |
Expand All @@ -70,7 +70,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set variables from matrix
run: |
IFS='|' read -r target path <<< "${{ matrix.change }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/file_change_detect_dorny.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get changed files in the .github folder
uses: dorny/paths-filter@v2
id: file_changes
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/file_change_detect_tj.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2
- id: changed-files
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/file_change_detect_trilom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2
- id: file_changes
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: gh pr list
run: gh pr list --json headRefName --jq ".[].headRefName"
- name: gh api repos/${{ github.repository }}/pulls
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/git_sparsecheckout.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
sparse-checkout: |
src
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/git_sparsecheckout_exclude.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
sparse-checkout: |
!src/*
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/git_sparsecheckout_nocorn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
sparse-checkout: |
src/*
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/git_tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: sleep
run: sleep 60s
- name: git tag
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/k8s_manifest_manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
NAMESPACE_PREFIX: githubactions-sample-
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: ${{ env.REPO_MANIFEST }}
path: ${{ env.REPO_MANIFEST }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/k8s_manifest_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
NAMESPACE_PREFIX: githubactions-sample-
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: ${{ env.REPO_MANIFEST }}
path: ${{ env.REPO_MANIFEST }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/k8s_manifest_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
GIT_BRANCH: ${{ env.GIT_BRANCH }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: ${{ env.REPO_MANIFEST }}
path: ${{ env.REPO_MANIFEST }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual_trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
TAGS: ${{ inputs.tags }}
steps:
- run: echo ${{ env.BRANCH }} ${{ env.LOGLEVEL }} ${{ env.TAGS }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
- name: dump github context
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/merge_branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# merge main to staging
- uses: devmasx/merge-branch@v1.4.0
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/merge_branch_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# merge main to staging
- uses: repo-sync/pull-request@v2
name: pull-request
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/multiline_inputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: multiline strings
uses: ./.github/actions/multiline-inputs
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nest_actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/nest-actions
2 changes: 1 addition & 1 deletion .github/workflows/pr_from_merge_commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: jwalton/gh-find-current-pr@v1
id: pr
with:
Expand Down
Loading