levibostian / action-random-file

Create a file into a random path

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

action-random-file

Create a file into a random path.

Getting started

jobs:
  main:
    # Action tested on ubuntu and macos
    runs-on: ubuntu-latest 
    steps:      
    - uses: levibostian/action-random-file@main
      id: create-file
      with:
        base64-file-content: ${{ secrets.BASE64_FILE_CONTENT }}
        file-name: "foo.txt"
    - name: Now, you can use the file! 
      run: ./use-file ${{ steps.create-file.outputs.path }}    

About

Create a file into a random path

License:MIT License