Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Not finding workflows to delete #3

Open
qd-danh opened this issue Mar 23, 2022 · 0 comments
Open

Not finding workflows to delete #3

qd-danh opened this issue Mar 23, 2022 · 0 comments

Comments

@qd-danh
Copy link

qd-danh commented Mar 23, 2022

Hello - really appreciate your custom action, just can't seem to get it to work.
Have tried both older-than-seconds (~1 month), and created-before (2022-01-01) options, so far with what-if set to true (want to make sure I have parameters correct before letting this thing loose)

and I definitely have older workflow runs (see screenshot)

Really two issues:

  • not seeing any workflows listed that are found to delete
  • seeing the warning about "Buffer() is deprecated" and not sure if that's related.

2022-03-23 09_00_18

2022-03-23 09_02_59

  - name: Delete old workflow runs
    uses: MajorScruffy/[email protected]
    with:
      repository: (***redacted***)
      workflow: ".github/workflows/commands.yml"
      # created-before: ${{ github.event.inputs.createdBeforeDate }}
      older-than-seconds: 2592000  # one month
      # created-before: "2021-12-08T16:34:00Z"
      # actor: [email protected]
      # branch: main
      # event: push
      # event: completed
      # maximum-workflow-runs-to-keep: 0
      what-if: true
    env:
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant