Skip to content

Commit

Permalink
Merge pull request #926 from Ana06/update-actions
Browse files Browse the repository at this point in the history
[CI] Update actions to use immutable release and non deprecated version of Node
  • Loading branch information
Ana06 authored Mar 4, 2024
2 parents 93ac324 + 7cde5bb commit 0074657
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/actions/upload-logs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ runs:
using: "composite"
steps:
- name: Upload VM logs to artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
if: always()
with:
name: log-VM-${{ matrix.os }}.zip
path: C:\ProgramData\_VM\log.txt
- name: Upload chocolatey logs to artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
if: always()
with:
name: logs-choco-${{ matrix.os }}.zip
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: windows-2019
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
# fetch all history for all branches
fetch-depth: 0
Expand All @@ -29,10 +29,10 @@ jobs:
os: [windows-2019, windows-2022]
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Get changed files
id: files
uses: Ana06/get-changed-files@v2.2.0
uses: Ana06/get-changed-files@25f79e676e7ea1868813e21465014798211fad8c # v2.3.0
with:
filter: '*.nuspec'
- name: Build and test all modified packages
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ jobs:
os_name: Win19
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Build and test all packages
run: scripts/test/test_install.ps1 -all -max_tries 3
- name: Upload logs to artifacts
uses: ./.github/actions/upload-logs
if: always()
- name: Checkout wiki code
if: always()
uses: actions/checkout@v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
repository: ${{ github.repository }}.wiki
path: wiki
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
echo "message=$message" >> $env:GITHUB_ENV
- name: Update dynamic badge gist
if: always()
uses: schneegans/[email protected]
uses: schneegans/dynamic-badges-action@e9a478b16159b4d31420099ba146cdc50f134483 # v1.7.0
with:
auth: ${{ secrets.REPO_TOKEN }}
gistID: 7d6b2592948d916eb5529350308f01d1
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/new_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
if: github.event.label.name == 'send PR'
steps:
- name: Remove 'send PR' label
uses: actions-ecosystem/action-remove-labels@v1
uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1.3.0
with:
labels: send PR
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Parse issue
uses: stefanbuck/github-issue-parser@v2
uses: stefanbuck/github-issue-parser@1e5bdee70d4b3e066a33aa0669ab782943825f94 # v3.1.0
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/new_package.yml
Expand All @@ -38,7 +38,7 @@ jobs:
uses: ./.github/actions/upload-logs
if: always()
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc # v6.0.1
if: steps.test.outcome == 'success'
with:
title: ':robot: Add ${{env.pkg_name}}.vm'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sync_badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Count packages
run: |
# Counts all packages in /packages including installer.vm
num_packages=$(ls packages | wc -l)
echo "num_packages=$num_packages" >> $GITHUB_ENV
- name: Update dynamic badge gist
uses: schneegans/[email protected]
uses: schneegans/dynamic-badges-action@e9a478b16159b4d31420099ba146cdc50f134483 # v1.7.0
with:
auth: ${{ secrets.REPO_TOKEN }}
gistID: 0e28118f551692f3401ac669e1d6761d
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: windows-2022
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install python dependency 'requests'
run: pip install requests
- name: Set git up
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
uses: ./.github/actions/upload-logs
if: always()
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc # v6.0.1
with:
title: ':robot: Package update'
body: 'Automated package update'
Expand Down

0 comments on commit 0074657

Please sign in to comment.