From fd1d8210276463a5a53a0def134c8ae8a3f97dd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sun, 30 Jun 2024 10:36:48 +0200 Subject: [PATCH] ci: Fix on Windows, tweak lock workflow --- .github/workflows/lock.yaml | 6 +++--- .github/workflows/update-status/action.yml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lock.yaml b/.github/workflows/lock.yaml index f67de1f04..e2a367f84 100644 --- a/.github/workflows/lock.yaml +++ b/.github/workflows/lock.yaml @@ -2,7 +2,7 @@ name: "Lock threads" on: schedule: - - cron: "0 0 * * *" + - cron: "37 2 * * *" jobs: lock: @@ -11,9 +11,9 @@ jobs: - uses: dessant/lock-threads@v5 with: github-token: ${{ github.token }} - issue-lock-inactive-days: "365" + issue-inactive-days: "365" issue-lock-reason: "" - issue-lock-comment: > + issue-comment: > This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary. diff --git a/.github/workflows/update-status/action.yml b/.github/workflows/update-status/action.yml index 1c66320a5..881217088 100644 --- a/.github/workflows/update-status/action.yml +++ b/.github/workflows/update-status/action.yml @@ -22,13 +22,13 @@ runs: html_url=$(gh api \ -H "Accept: application/vnd.github+json" \ -H "X-GitHub-Api-Version: 2022-11-28" \ - /repos/${{ github.repository }}/actions/runs/${{ github.run_id }} | jq -r .html_url) + repos/${{ github.repository }}/actions/runs/${{ github.run_id }} | jq -r .html_url) gh api \ --method POST \ -H "Accept: application/vnd.github+json" \ -H "X-GitHub-Api-Version: 2022-11-28" \ - /repos/${{ github.repository }}/statuses/${{ inputs.sha }} \ + repos/${{ github.repository }}/statuses/${{ inputs.sha }} \ -f "state=${{ job.status }}" -f "target_url=$html_url" -f "description=${{ github.workflow }} / ${{ github.job }}" -f "context=actions-sync" fi shell: bash