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

feat: allow reading environment variables for paths #159

Open
cristianoliveira opened this issue Jul 7, 2024 · 0 comments
Open

feat: allow reading environment variables for paths #159

cristianoliveira opened this issue Jul 7, 2024 · 0 comments
Labels
feature A feature idea or request

Comments

@cristianoliveira
Copy link
Owner

Just an idea I had while having to debug nix builds and there was issues with permissions

- name: task with absolute path @valid
  run:
    - "echo 'this file has changed: {{filepath}}'"
  change: 
    - "/tmp/fzz/accepts_full_or_relativepaths.txt"
    - "/tmp/fzz/accepts_full_or_relativepaths2.txt"
    - "examples/workdir/**/*"
  ignore: 
    - "examples/workdir/ignored/**/*.txt"

And I would like to set env virable to watch different paths

- name: task with absolute path @valid
  run:
    - "echo 'this file has changed: {{filepath}}'"
  change: 
    - "$MY_CUSTOM_PATH/fzz/accepts_full_or_relativepaths.txt"
    - "{{MY_VARIABLE?}}/fzz/accepts_full_or_relativepaths2.txt"
    - "examples/workdir/**/*"
  ignore: 
    - "examples/workdir/ignored/**/*.txt"
@cristianoliveira cristianoliveira added the feature A feature idea or request label Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A feature idea or request
Projects
None yet
Development

No branches or pull requests

1 participant