mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
ci: add fork guards to scheduled workflows (#7292)
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
This commit is contained in:
@@ -18,6 +18,7 @@ on:
|
||||
jobs:
|
||||
deny:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'block/goose'
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
|
||||
@@ -11,6 +11,7 @@ on:
|
||||
|
||||
jobs:
|
||||
release:
|
||||
if: github.repository == 'block/goose'
|
||||
uses: ./.github/workflows/create-release-pr.yaml
|
||||
with:
|
||||
bump_type: "minor"
|
||||
|
||||
@@ -23,6 +23,7 @@ concurrency:
|
||||
jobs:
|
||||
rebuild-docs:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'block/goose'
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
name: Scorecard analysis
|
||||
runs-on: ubuntu-latest
|
||||
# `publish_results: true` only works when run from the default branch. conditional can be removed if disabled.
|
||||
if: github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request'
|
||||
if: github.repository == 'block/goose' && (github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request')
|
||||
permissions:
|
||||
# Needed to upload the results to code-scanning dashboard.
|
||||
security-events: write
|
||||
|
||||
@@ -24,6 +24,7 @@ jobs:
|
||||
stale:
|
||||
name: 'Mark and Close Stale PRs'
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'block/goose'
|
||||
|
||||
steps:
|
||||
# Use the official stale action from GitHub
|
||||
|
||||
@@ -9,6 +9,7 @@ on:
|
||||
jobs:
|
||||
update-leaderboard:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'block/goose'
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: read
|
||||
|
||||
@@ -23,6 +23,7 @@ jobs:
|
||||
update-dashboard:
|
||||
name: 'Update Health Dashboard'
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'block/goose'
|
||||
|
||||
steps:
|
||||
- name: 'Download previous metrics'
|
||||
|
||||
Reference in New Issue
Block a user