mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-10 03:43:15 +08:00
Update workflows (#367)
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user