Skip to content

exempt-protected-branches input doesn't work #35

@davidkominekhypixelstudios

Description

Following workflow has exempt-protected-branches: true which should exclude protected branches but it doesn't work and still flags protected branches as stale.

name: Stale Branch Cleanup

on:
    workflow_dispatch:
        inputs:
            operations:
                type: number
                required: false
                default: 50
    schedule:
        - cron: "0 0 * * *" # Everday at midnight

jobs:
    remove-stale-branches:
        name: Remove Stale Branches
        runs-on: ubuntu-latest
        steps:
            -   uses: fpicalausa/[email protected]
                with:
                    dry-run: false # Check out the console output before setting this to false
                    exempt-protected-branches: true
                    days-before-branch-stale: 30
                    stale-branch-message: |
                        placeholder message
                    days-before-branch-delete: 30
                    operations-per-run: "${{ github.event.inputs.operations || 50 }}"
                    ignore-branches-with-open-prs: true
                    ignore-unknown-authors: true
                    default-recipient: placeholder_recipient

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions