diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index fb67e0f5..83b13007 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -40,13 +40,13 @@ jobs: retention-days: 90 - name: issue评论 - if: github.event_name != 'pull_request' && github.ref != 'refs/heads/feature/test' + if: github.event_name != 'pull_request' && github.ref != 'refs/heads/feature/test' && ${{vars.VERSION_ISSUE_NO}} uses: actions/github-script@v7 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | github.rest.issues.createComment({ - issue_number: 483, + issue_number: ${{vars.VERSION_ISSUE_NO}}, owner: context.repo.owner, repo: context.repo.repo, body: '- 下载地址: [${{ github.workflow }}_${{ env.BRANCH }}_${{ env.DATE }}](${{ steps.upload.outputs.artifact-url }})\n' diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 6de43e0f..a85a748d 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -115,13 +115,13 @@ jobs: retention-days: 90 - name: issue评论 - if: github.event_name != 'pull_request' && github.ref != 'refs/heads/feature/test' + if: github.event_name != 'pull_request' && github.ref != 'refs/heads/feature/test' && ${{vars.VERSION_ISSUE_NO}} uses: actions/github-script@v7 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | github.rest.issues.createComment({ - issue_number: 483, + issue_number: ${{vars.VERSION_ISSUE_NO}}, owner: context.repo.owner, repo: context.repo.repo, body: '- 下载地址: [${{ github.workflow }}_${{ env.BRANCH }}_${{ env.DATE }}](${{ steps.upload.outputs.artifact-url }})\n' diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 3cc2cceb..86758e77 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -46,13 +46,13 @@ jobs: retention-days: 90 - name: issue评论 - if: github.event_name != 'pull_request' && github.ref != 'refs/heads/feature/test' + if: github.event_name != 'pull_request' && github.ref != 'refs/heads/feature/test' && ${{vars.VERSION_ISSUE_NO}} uses: actions/github-script@v7 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | github.rest.issues.createComment({ - issue_number: 483, + issue_number: ${{vars.VERSION_ISSUE_NO}}, owner: context.repo.owner, repo: context.repo.repo, body: '- 下载地址: [${{ github.workflow }}_${{ env.BRANCH }}_${{ env.DATE }}](${{ steps.upload.outputs.artifact-url }})\n' diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index d444bdbc..4ebe3ccc 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -48,13 +48,13 @@ jobs: retention-days: 90 - name: issue评论 - if: github.event_name != 'pull_request' && github.ref != 'refs/heads/feature/test' + if: github.event_name != 'pull_request' && github.ref != 'refs/heads/feature/test' && ${{vars.VERSION_ISSUE_NO}} uses: actions/github-script@v7 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | github.rest.issues.createComment({ - issue_number: 483, + issue_number: ${{vars.VERSION_ISSUE_NO}}, owner: context.repo.owner, repo: context.repo.repo, body: '- 下载地址: [${{ github.workflow }}_${{ env.BRANCH }}_${{ env.DATE }}](${{ steps.upload.outputs.artifact-url }})\n'