From 44cdb3a52e892bb133f17db39a3320cf7ca5be91 Mon Sep 17 00:00:00 2001 From: clsty Date: Fri, 10 Oct 2025 00:23:07 +0800 Subject: [PATCH] Fix workflow --- .github/workflows/dist-update-notification.yml | 4 +++- dist-arch/README.md | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dist-update-notification.yml b/.github/workflows/dist-update-notification.yml index a4f2f79a8..5e2cdf5b3 100644 --- a/.github/workflows/dist-update-notification.yml +++ b/.github/workflows/dist-update-notification.yml @@ -20,10 +20,12 @@ jobs: MESSAGE="Directory \`dist-arch\` has been updated.\n" MESSAGE+="Commit HASH: ${{ github.sha }}\n" MESSAGE+="Commit message: ${{ github.event.head_commit.message }}\n" + REPO_OWNER="${{ github.repository.owner }}" + REPO_NAME="${{ github.repository.name }}" DISCUSSION_NODE_ID=$(gh api graphql -f query=' query { - repository( owner: "'${{ github.repository.owner }}'", name: "'${{ github.repository.name }}'" ) + repository( owner: '${REPO_OWNER}', name: '${REPO_NAME}' ) { discussion(number: '${DISCUSSION_NUMBER}') { id } } }' | \ jq -r '.data.repository.discussion.id') diff --git a/dist-arch/README.md b/dist-arch/README.md index f08db5870..8fd96687f 100644 --- a/dist-arch/README.md +++ b/dist-arch/README.md @@ -1,5 +1,4 @@ # Install scripts for Arch Linux - ## Old Dependency Installation Method The old deps install method mainly involved `./scriptdata/dependencies.conf` (which has been removed now).