Resolve warnings in Windows GitHub Actions periodic workflows
Upgrade actions/github-script from v3 to v6 to resolve Node.js 12 and `set-output` command warnings. Upgrade google-github-actions/upload-cloud-storage from v0.8.0 to v0.10.4 to resolve `set-output` command warnings. Upgrade actions/checkout from v2 to v3 to resolve Node.js 12 warnings. Remove references to `set-output` command from workflow. Signed-off-by: Austin Vazquez <macedonv@amazon.com>
This commit is contained in:
parent
722df11e92
commit
8c035d3873
18
.github/workflows/windows-hyperv-periodic.yml
vendored
18
.github/workflows/windows-hyperv-periodic.yml
vendored
@ -55,7 +55,7 @@ jobs:
|
|||||||
GOOGLE_BUCKET: "containerd-integration/logs/windows-ltsc2022-hyperv/"
|
GOOGLE_BUCKET: "containerd-integration/logs/windows-ltsc2022-hyperv/"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install required packages
|
- name: Install required packages
|
||||||
run: |
|
run: |
|
||||||
@ -186,7 +186,7 @@ jobs:
|
|||||||
set -o pipefail
|
set -o pipefail
|
||||||
make integration | tee ${{ env.VM_INTEGRATION_LOGFILE }}
|
make integration | tee ${{ env.VM_INTEGRATION_LOGFILE }}
|
||||||
EOF
|
EOF
|
||||||
echo '::set-output name=SUCCEEDED::1'
|
echo 'SUCCEEDED=1' >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: PrepareRepoList
|
- name: PrepareRepoList
|
||||||
run: |
|
run: |
|
||||||
@ -248,7 +248,7 @@ jobs:
|
|||||||
set -o pipefail
|
set -o pipefail
|
||||||
make cri-integration | tee ${{ env.VM_CRI_INTEGRATION_LOGFILE }}
|
make cri-integration | tee ${{ env.VM_CRI_INTEGRATION_LOGFILE }}
|
||||||
EOF
|
EOF
|
||||||
echo '::set-output name=SUCCEEDED::1'
|
echo 'SUCCEEDED=1' >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: GetCritestRepo
|
- name: GetCritestRepo
|
||||||
run: |
|
run: |
|
||||||
@ -277,7 +277,7 @@ jobs:
|
|||||||
set -o pipefail
|
set -o pipefail
|
||||||
c:/cri-tools/build/bin/critest.exe $SKIP --runtime-endpoint='npipe://./pipe/containerd-containerd' --test-images-file='c:/cri-test-images.yaml' --report-dir='c:/Logs' -ginkgo.junit-report="C:\Logs\junit_critest.xml" | tee c:/Logs/critest.log
|
c:/cri-tools/build/bin/critest.exe $SKIP --runtime-endpoint='npipe://./pipe/containerd-containerd' --test-images-file='c:/cri-test-images.yaml' --report-dir='c:/Logs' -ginkgo.junit-report="C:\Logs\junit_critest.xml" | tee c:/Logs/critest.log
|
||||||
EOF
|
EOF
|
||||||
echo '::set-output name=SUCCEEDED::1'
|
echo 'SUCCEEDED=1' >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: PullLogsFromWinNode
|
- name: PullLogsFromWinNode
|
||||||
run: |
|
run: |
|
||||||
@ -300,8 +300,8 @@ jobs:
|
|||||||
- name: AssignGcpCreds
|
- name: AssignGcpCreds
|
||||||
id: AssignGcpCreds
|
id: AssignGcpCreds
|
||||||
run: |
|
run: |
|
||||||
echo '::set-output name=GCP_SERVICE_ACCOUNT::${{ secrets.GCP_SERVICE_ACCOUNT }}'
|
echo 'GCP_SERVICE_ACCOUNT=${{ secrets.GCP_SERVICE_ACCOUNT }}' >> $GITHUB_OUTPUT
|
||||||
echo '::set-output name=GCP_WORKLOAD_IDENTITY_PROVIDER::${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}'
|
echo 'GCP_WORKLOAD_IDENTITY_PROVIDER=${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}' >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: AuthGcp
|
- name: AuthGcp
|
||||||
uses: google-github-actions/auth@v0
|
uses: google-github-actions/auth@v0
|
||||||
@ -311,7 +311,7 @@ jobs:
|
|||||||
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
|
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
|
||||||
|
|
||||||
- name: UploadJobReport
|
- name: UploadJobReport
|
||||||
uses: google-github-actions/upload-cloud-storage@v0.8.0
|
uses: google-github-actions/upload-cloud-storage@v0.10.4
|
||||||
if: steps.AssignGcpCreds.outputs.GCP_SERVICE_ACCOUNT && steps.AssignGcpCreds.outputs.GCP_WORKLOAD_IDENTITY_PROVIDER
|
if: steps.AssignGcpCreds.outputs.GCP_SERVICE_ACCOUNT && steps.AssignGcpCreds.outputs.GCP_WORKLOAD_IDENTITY_PROVIDER
|
||||||
with:
|
with:
|
||||||
path: ${{ github.workspace }}/latest-build.txt
|
path: ${{ github.workspace }}/latest-build.txt
|
||||||
@ -319,7 +319,7 @@ jobs:
|
|||||||
parent: false
|
parent: false
|
||||||
|
|
||||||
- name: UploadLogsDir
|
- name: UploadLogsDir
|
||||||
uses: google-github-actions/upload-cloud-storage@v0.8.0
|
uses: google-github-actions/upload-cloud-storage@v0.10.4
|
||||||
if: steps.AssignGcpCreds.outputs.GCP_SERVICE_ACCOUNT && steps.AssignGcpCreds.outputs.GCP_WORKLOAD_IDENTITY_PROVIDER
|
if: steps.AssignGcpCreds.outputs.GCP_SERVICE_ACCOUNT && steps.AssignGcpCreds.outputs.GCP_WORKLOAD_IDENTITY_PROVIDER
|
||||||
with:
|
with:
|
||||||
path: ${{ env.LOGS_DIR }}
|
path: ${{ env.LOGS_DIR }}
|
||||||
@ -327,7 +327,7 @@ jobs:
|
|||||||
parent: false
|
parent: false
|
||||||
|
|
||||||
- name: Check all CI stages succeeded
|
- name: Check all CI stages succeeded
|
||||||
uses: actions/github-script@v3
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const stepResults = {
|
const stepResults = {
|
||||||
|
6
.github/workflows/windows-periodic.yml
vendored
6
.github/workflows/windows-periodic.yml
vendored
@ -266,7 +266,7 @@ jobs:
|
|||||||
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
|
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
|
||||||
|
|
||||||
- name: UploadJobReport
|
- name: UploadJobReport
|
||||||
uses: google-github-actions/upload-cloud-storage@v0.8.0
|
uses: google-github-actions/upload-cloud-storage@v0.10.4
|
||||||
if: steps.AssignGcpCreds.outputs.GCP_SERVICE_ACCOUNT && steps.AssignGcpCreds.outputs.GCP_WORKLOAD_IDENTITY_PROVIDER
|
if: steps.AssignGcpCreds.outputs.GCP_SERVICE_ACCOUNT && steps.AssignGcpCreds.outputs.GCP_WORKLOAD_IDENTITY_PROVIDER
|
||||||
with:
|
with:
|
||||||
path: ${{ github.workspace }}/latest-build.txt
|
path: ${{ github.workspace }}/latest-build.txt
|
||||||
@ -274,7 +274,7 @@ jobs:
|
|||||||
parent: false
|
parent: false
|
||||||
|
|
||||||
- name: UploadLogsDir
|
- name: UploadLogsDir
|
||||||
uses: google-github-actions/upload-cloud-storage@v0.8.0
|
uses: google-github-actions/upload-cloud-storage@v0.10.4
|
||||||
if: steps.AssignGcpCreds.outputs.GCP_SERVICE_ACCOUNT && steps.AssignGcpCreds.outputs.GCP_WORKLOAD_IDENTITY_PROVIDER
|
if: steps.AssignGcpCreds.outputs.GCP_SERVICE_ACCOUNT && steps.AssignGcpCreds.outputs.GCP_WORKLOAD_IDENTITY_PROVIDER
|
||||||
with:
|
with:
|
||||||
path: ${{ env.LOGS_DIR }}
|
path: ${{ env.LOGS_DIR }}
|
||||||
@ -282,7 +282,7 @@ jobs:
|
|||||||
parent: false
|
parent: false
|
||||||
|
|
||||||
- name: Check all CI stages succeeded
|
- name: Check all CI stages succeeded
|
||||||
uses: actions/github-script@v3
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const stepResults = {
|
const stepResults = {
|
||||||
|
Loading…
Reference in New Issue
Block a user