Skip to content

Commit

Permalink
Github Actions - MSBuild, Checkout, Badges, and Download Artifact (#430)
Browse files Browse the repository at this point in the history
* badge action

version update

* checkout action

upgrade checkout action to latest for dev

* checkout action

upgrade checkout action to latest for primary

* checkout action

upgrade checkout action for build and release workflow

* msbuild action

upgrade msbuild action to latest for dev

* msbuild action

upgrade msbuild action to latest for primary

* msbuild action

upgrade msbuild action for build and release workflow

* checkout and msbuild action

upgrade check and msbuild actions for CodeQL security scanning

* download artifact action

upgrade download artifact action for build and release workflow
  • Loading branch information
AdhocAdam authored Jan 19, 2023
1 parent cb0aeb3 commit 14d06d2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/BuildDev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out repository under $GITHUB_WORKSPACE, so job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v3.3.0
with:
ref: dev

# Add MSBuild to environment path
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@v1.1.3

# copy dependencies over
- name: Copy Dependencies folder from the repo to Build for MP signing and show them
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/BuildPrimary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out repository under $GITHUB_WORKSPACE, so job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v3.3.0
with:
ref: primary

# Add MSBuild to environment path
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@v1.1.3

# copy dependencies over
- name: Copy Dependencies folder from the repo to Build for MP signing and show them
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/PSScriptAnalyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
echo "ERRORS=$errorCount" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
- name: Create Error Badge for PSScriptAnalyzer Result
uses: schneegans/dynamic-badges-action@v1.4.0
uses: schneegans/dynamic-badges-action@v1.6.0
with:
auth: ${{ secrets.SMEXCOSCRIPTANALYZERGIST }}
gistID: a85ec65858e3065359d1d6a9d122e723
Expand All @@ -47,7 +47,7 @@ jobs:
color: red

- name: Create Warning Badge for PSScriptAnalyzer Result
uses: schneegans/dynamic-badges-action@v1.4.0
uses: schneegans/dynamic-badges-action@v1.6.0
with:
auth: ${{ secrets.SMEXCOSCRIPTANALYZERGIST }}
gistID: a85ec65858e3065359d1d6a9d122e723
Expand All @@ -57,7 +57,7 @@ jobs:
color: yellow

- name: Create Info Badge for PSScriptAnalyzer Result
uses: schneegans/dynamic-badges-action@v1.4.0
uses: schneegans/dynamic-badges-action@v1.6.0
with:
auth: ${{ secrets.SMEXCOSCRIPTANALYZERGIST }}
gistID: a85ec65858e3065359d1d6a9d122e723
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/buildrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out repository under $GITHUB_WORKSPACE, so job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v3.3.0
with:
ref: ${{ github.event.inputs.branch }}

# Add MSBuild to environment path
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@v1.1.3

# copy dependencies over
- name: Copy Dependencies folder from the repo to Build for MP signing and show them
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
prerelease: ${{ github.event.inputs.prerelease }}

# download the Artifacts to Ubuntu that were uploaded in the Windows build step
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3.0.2
id: download #this will be used as a variable
with:
name: SMletsExchangeConnector
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3.3.0

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:

# Add MSBuild to environment path
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@v1.1.3

# copy dependencies over
- name: Copy Dependencies folder from the repo to Build for MP signing and show them
Expand Down

0 comments on commit 14d06d2

Please sign in to comment.