Skip to content

Help regarding using skip parameter with file globs #88

Open
@Int-Circuit

Description

Hi, I am trying to set up the action in my repo but I'm having a hard time to set up the skip param for certain files.

This is my code

name: Deploy Sphinx documentation to Pages

on:
  push:
  pull_request:
    branches: [master] # branch to trigger deployment

jobs:
  pages:
    runs-on: ubuntu-20.04
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    permissions:
      pages: write
      id-token: write
    steps:
    - uses: actions/checkout@v3

    - id: spell
      uses: codespell-project/actions-codespell@v2
      with:
        path: source
        exclude_file: ${{ github.workspace }}/source/conf.py
        skip:  .svg, .po, .sh, .py 
      continue-on-error: true
    - id: deployment
      uses: sphinx-notes/pages@v3
      with:
        documentation_path: ./source
        requirements_path: requirements.txt
        cache: true

the problem is that I don't know how to correctly enter the globs so that the various types are skipped as there isn't any example.

I tried skip: .svg, .po, .sh, .py, skip: "*.svg,* .po, *.sh, *.py" and others but the action still only omits .svg files and scans the rest.
Help would very be appreciated
Thx

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions