From 7c56a44fcfe3c4aa4448e0d2635dbc7ebb63be20 Mon Sep 17 00:00:00 2001 From: Caner Karaca <37447503+CanerKaraca23@users.noreply.github.com> Date: Thu, 5 Jun 2025 17:57:00 +0300 Subject: [PATCH] Update workflows (#367) --- .github/workflows/ci.yml | 4 ++-- .github/workflows/nightly.yml | 10 +++++----- .github/workflows/pr-comment.yml | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d6746db..6eef68f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ jobs: runs-on: [ self-hosted, Windows ] name: CI steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Check CMake version run: cmake --version @@ -36,4 +36,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: RelWithDebInfo-Clang - path: build/YimMenuV2-dev-*.dll + path: build/YimMenuV2-dev-*.dll \ No newline at end of file diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 098a532..2edb63f 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -17,7 +17,7 @@ jobs: outputs: should_run: ${{ steps.should_run.outputs.should_run }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - id: should_run name: Check if latest commit date is within the previous 24 hours @@ -37,7 +37,7 @@ jobs: full_sha: ${{ steps.var.outputs.full_sha }} short_sha: ${{ steps.var.outputs.short_sha }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive @@ -75,11 +75,11 @@ jobs: needs: build_nightly if: needs.check_recent_commit.outputs.should_run == 'true' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Delete Existing Release id: delete_release - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | const owner = context.repo.owner; @@ -131,7 +131,7 @@ jobs: cat sha256.checksum - name: Nightly Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: name: Nightly [${{ needs.build_nightly.outputs.short_sha }}] tag_name: nightly diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml index 60c0425..7961e51 100644 --- a/.github/workflows/pr-comment.yml +++ b/.github/workflows/pr-comment.yml @@ -17,7 +17,7 @@ jobs: # Assume the 0th index in the array of found PRs is the correct one (it seems to usually be the latest one) PR_NUM=$(echo $PR_RAW | jq '.items | map(select(.repository_url=="https://api.github.com/repos/${{ github.repository }}")) | .[0].number') echo "PR_NUM=${PR_NUM}" >> $GITHUB_ENV - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 with: # This snippet is public-domain, taken from # https://github.com/oprypin/nightly.link/blob/master/.github/workflows/pr-comment.yml