Skip to content

support: How to retain the reports only for certain number of period? #1146

@bhala-ki

Description

@bhala-ki

Checklist

  • I am using the latest version of this action.
  • I have read the latest README and followed the instructions.
  • I have read the latest GitHub Actions official documentation and learned the basic spec and concepts.

Describe your question

I would like to retain only the reports that are generated within 30 days of period and delete the folders of the gh-pages branch that are older than 30 days!
is there something that I can use keep_reports: 30 as in simple-elf/allure-report-action for peaceiris/actions-gh-pages action?

Relevant links

Public repository: NA
YAML config: NA
YAML workflow GHA Step:       

      - name: Publish reports
        uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
        if: always()
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: src/report/
          destination_dir: ${{ steps.destination-dir.outputs.report_directory }}
          keep_files: true

Relevant log output

No response

Additional context.

No response

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions