Skip to content

Commit

Permalink
ci: Fix on Windows, tweak lock workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Jul 1, 2024
1 parent ae58295 commit b6bbe48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Lock threads"

on:
schedule:
- cron: "0 0 * * *"
- cron: "37 2 * * *"

jobs:
lock:
Expand All @@ -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.
4 changes: 2 additions & 2 deletions .github/workflows/update-status/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b6bbe48

Please sign in to comment.