Skip to content

Commit

Permalink
chore(CI): only run stale on schedules
Browse files Browse the repository at this point in the history
  • Loading branch information
meysam81 committed Aug 23, 2024
1 parent b967e0b commit abcb3e3
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ on:
- main
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
inputs:
stale:
description: "Run stale action"
required: false
type: boolean
default: false

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -162,12 +155,7 @@ jobs:
trivy-config: trivy.yaml

stale:
if: |
github.event_name == 'schedule' ||
(
github.event_name == 'workflow_dispatch' &&
${{ github.event.inputs.stale }}
)
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
permissions:
contents: write # only for delete-branch option
Expand Down

0 comments on commit abcb3e3

Please sign in to comment.