Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to specify an include filter for the files to be purged #2

Open
tripodsan opened this issue Oct 8, 2020 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@tripodsan
Copy link
Collaborator

suggest an input property 'include':

on: push

jobs:
  ci_trigger:
    runs-on: ubuntu-latest
    name: Clear helix pages cache
    steps:
      - name: Trigger
        id: trigger
        uses: adobe-rnd/github-purge-cache-action@master
        with:
          repo-token: ${{ secrets.MY_GITHUB_TOKEN }}
          include:
            - /scripts*
            - /styles*

the filtering should use https://www.npmjs.com/package/glob

@davidnuescheler
Copy link
Contributor

looking at all the helix pages repos i am not sure that would be required initially. there may definitely be edge cases where people have commits with many files that have no representation on the public facing website, but i can't see those yet.
so i would suggest we hold off with that until we find some issues... all things considered, the potential purging of things that were never in the cache is relatively low overhead.

@tripodsan tripodsan added the enhancement New feature or request label Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants