Skip to content

action-dirname

Actions
Given a set of file paths, outputs the set of directories containing those files
v1.0.5
Latest
Star (0)

Tags

 (1)

action-dirname

Given a set of file paths, outputs the set of directories containing those files.

Inputs

files

Required A JSON array of file paths.

Outputs

directories

A JSON array of directories containing the files.

Example usage

jobs:
  sample:
    runs-on: ubuntu-latest
    steps:
      - uses: sebelino/action-dirname@v1.0.5
        id: dirname
        with:
          files: '["main.tf", "versions.tf", "modules/vpc/sg.tf"]'
      - run: |
          # Will output: [".","modules/vpc"]
          echo ${{ toJson(steps.dirname.outputs.directories) }}

Development

$ go run ./app.go '["main.tf", "versions.tf", "modules/vpc/sg.tf"]'
[".","modules/vpc"]

action-dirname is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Given a set of file paths, outputs the set of directories containing those files
v1.0.5
Latest

Tags

 (1)

action-dirname is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.