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

Help using regex #465

Open
AB6162 opened this issue Jun 9, 2024 · 1 comment
Open

Help using regex #465

AB6162 opened this issue Jun 9, 2024 · 1 comment

Comments

@AB6162
Copy link

AB6162 commented Jun 9, 2024

Question/Support
Hi, I am needing to exclude name.js files from uploading and only upload name-min.js files. I have tried with the following configuration including the expression /(.*)[^\-min].js/m but I get error:

on:
  push:
    branches:
      - develop
name: Deploy on develop branch
jobs:
  web-deploy:
    name: Deploy
    runs-on: ubuntu-latest
    steps:
    - name: Get latest code
      uses: actions/checkout@v3

    - name: Push files
      uses: SamKirkland/FTP-Deploy-Action@v4.3.5
      with:
        server: xxx
        username: xxxx
        password: ${{ secrets.xxxxx }}
        server-dir: public_html/
        exclude: |
          **/.github/**
          **/.git*
          **/.git*/**
          **/node_modules/**
          **/test/**
          test/**
          **/public/static/js/admin//(.*)[^\-min]\.js/m

Is there any way to use a regex expression or could someone tell me where I am wrong?

Thanks!!

@abdul-alhasany
Copy link

This action uses glob pattern not regex. Check this tool to see which files/folders will be processed.
https://www.digitalocean.com/community/tools/glob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants