mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 22:19:40 -08:00
9e5cc340c3
Currently github actions keep sending me mails about things that should only run on the prometheus organisation actions. This change makes sure to check who owns the repository before running the CI workflow. Signed-off-by: Francis Begyn <francis@begyn.be>
24 lines
433 B
YAML
24 lines
433 B
YAML
name: 'Lock Threads'
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '13 23 * * *'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
issues: write
|
|
|
|
concurrency:
|
|
group: lock
|
|
|
|
jobs:
|
|
action:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository_owner == 'prometheus'
|
|
steps:
|
|
- uses: dessant/lock-threads@v4
|
|
with:
|
|
process-only: 'issues'
|
|
issue-inactive-days: '180'
|
|
github-token: ${{ secrets.PROMBOT_LOCKTHREADS_TOKEN }}
|