Skip to content

Commit

Permalink
🚧Update github checkout action (#166)
Browse files Browse the repository at this point in the history
* Start work for issue #165

* ci: update all checkout actions from version v3 to v4

* ci: update reusable workflows versions

* ci: remove sync status check

This is pointless due to failure for every single pull request due to every pull request
having version changes
  • Loading branch information
CalvinWilkinson authored Sep 4, 2023
1 parent 85fd3c3 commit 0595c75
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 81 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/add-new-item-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
add_new_item_to_project:
name: Add New Issue
needs: item_number
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1
with:
org-name: "${{ vars.ORGANIZATION_NAME }}"
org-project-name: "${{ vars.ORG_PROJECT_NAME }}"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-csharp-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
resolve_proj_file_path:
name: Resolving ${{ inputs.project-name }} Project File Path
needs: print_validate_workflow
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1
with:
project-name: ${{ inputs.project-name }}
base-path: ${{ inputs.base-path }}
Expand All @@ -81,7 +81,7 @@ jobs:
needs: resolve_proj_file_path
runs-on: ${{ inputs.runs-on }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup .NET SDK ${{ inputs.net-sdk-version }}
uses: actions/setup-dotnet@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docusaurus-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
runs-on: ${{ inputs.runs-on }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Validate Workflow Inputs
run: |
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
name: ${{ inputs.environment-name}}
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node (v${{ inputs.node-version }})
uses: actions/setup-node@v3
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/dotnet-action-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:
validate_version:
name: Validate Version
needs: [print_validate_workflow, validate_branch]
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1
with:
project-name: "${{ inputs.project-name }}"
release-type: "${{ inputs.release-type }}"
Expand All @@ -168,7 +168,7 @@ jobs:
validate_tag:
name: Validate Tag
needs: validate_version
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1
with:
project-name: "${{ inputs.project-name }}"
release-type: "${{ inputs.release-type }}"
Expand All @@ -183,7 +183,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Release Notes Exist
run: |
Expand All @@ -207,7 +207,7 @@ jobs:
validate_github_release:
name: GitHub Release Does Not Exist
needs: validate_version
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1
with:
project-name: "${{ inputs.project-name }}"
version: "${{ needs.validate_version.outputs.version }}"
Expand All @@ -218,7 +218,7 @@ jobs:
build_project:
name: Build Main Project (${{ inputs.project-name }})
needs: print_validate_workflow
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1
with:
project-name: "${{ inputs.project-name }}"
runs-on: "${{ inputs.runs-on }}"
Expand All @@ -229,7 +229,7 @@ jobs:
run_tests:
name: Run Tests
needs: print_validate_workflow
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1
with:
project-name: "${{ inputs.project-name }}Tests"
runs-on: "${{ inputs.runs-on }}"
Expand All @@ -251,7 +251,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get GitHub Workspace
id: base-dir-path
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/dotnet-lib-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ jobs:
validate_version:
name: Validate Version
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1
with:
project-name: "${{ inputs.project-name }}"
release-type: "${{ inputs.release-type }}"
Expand All @@ -193,7 +193,7 @@ jobs:
validate_tag:
name: Validate Tag
needs: validate_version
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1
with:
project-name: "${{ inputs.project-name }}"
release-type: "${{ inputs.release-type }}"
Expand All @@ -205,7 +205,7 @@ jobs:
nuget_pkg_does_not_exist:
name: Validate NuGet Package Does Not Exist
needs: validate_version
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1
with:
project-name: "${{ inputs.project-name }}"
version: "${{ needs.validate_version.outputs.version }}"
Expand All @@ -214,7 +214,7 @@ jobs:
validate_milestone_status:
name: Validate Milestone Status
needs: validate_version
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1
with:
project-name: "${{ inputs.project-name }}"
version: "${{ needs.validate_version.outputs.version }}"
Expand All @@ -225,7 +225,7 @@ jobs:
validate_github_release:
name: GitHub Release Does Not Exist
needs: [validate_version]
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1
with:
project-name: "${{ inputs.project-name }}"
version: "${{ needs.validate_version.outputs.version }}"
Expand All @@ -236,7 +236,7 @@ jobs:
build_project:
name: Build Main Project
needs: print_validate_workflow
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1
with:
project-name: "${{ inputs.project-name }}"
runs-on: "${{ inputs.runs-on }}"
Expand All @@ -247,7 +247,7 @@ jobs:
run_tests:
name: Run Tests
needs: print_validate_workflow
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1
with:
project-name: "${{ inputs.project-name }}Tests"
runs-on: "${{ inputs.runs-on }}"
Expand All @@ -264,7 +264,7 @@ jobs:
validate_milestone_status, validate_github_release]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-status-check.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
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set Up Deno
uses: denoland/setup-deno@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set Up Deno
uses: denoland/setup-deno@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/resolve-csharp-proj-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Print Environment Variables
run: Get-ChildItem -Path Env:* | Sort-Object Name

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Resolve Project File Path
id: resolve-file-path
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-csharp-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
resolve_proj_file_path:
name: Resolving ${{ inputs.project-name }} Project File Path
needs: print_validate_workflow
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1
with:
project-name: ${{ inputs.project-name }}
base-path: ${{ inputs.base-path }}
Expand All @@ -83,7 +83,7 @@ jobs:
needs: [print_validate_workflow, resolve_proj_file_path]
runs-on: ${{ inputs.runs-on }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-dotnet@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sync-pr-to-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
initial_sync:
name: Start Initial Sync
if: ${{ github.event_name == 'pull_request_target' }}
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1
with:
issue-or-pr-number: ${{ github.event.pull_request.number }}
sync-type: initial
Expand All @@ -30,7 +30,7 @@ jobs:
manual_sync:
name: Start Manual Sync
if: ${{ github.event_name == 'issue_comment' && contains(github.event.comment.body, '[run-sync]') }}
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1
with:
issue-or-pr-number: ${{ github.event.issue.number }}
sync-type: manual
Expand Down
53 changes: 0 additions & 53 deletions .github/workflows/sync-status-check.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/workflow-version-status-check.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
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set Up Deno
uses: denoland/setup-deno@v1
Expand Down

0 comments on commit 0595c75

Please sign in to comment.