MeilCli/slack-upload-file

How to use wildcards for the file to download

Closed this issue · 2 comments

hi,

- name: Upload artifacts to slack
      uses: MeilCli/slack-upload-file@v2
      with: 
        slack_token: ${{ secrets.SLACK_TOKEN }}
        file_path: 'src/main/resources/master*.txt'
        file_type: 'text'
        channels: testchannelprism
        initial_comment: 'post by slack-upload-file'
  As of now i tried by providing * in filepath, but no luck can u help pls

@cb-anomitromunshi
I was tested wildcard posting. That was succeded.
ref:

# test for issue 529
post2:
runs-on: ubuntu-latest
steps:
- run: mkdir -p src/main
- run: 'echo ${{ github.event.inputs.message }} > src/main/test1.txt'
- run: 'echo ${{ github.event.inputs.message }} > src/main/test2.txt'
- uses: MeilCli/slack-upload-file@v2
with:
slack_token: ${{ secrets.SLACK_TOKEN }}
channels: ${{ secrets.SLACK_CHANNELS }}
file_path: 'src/main/test*.txt'
file_type: 'text'
initial_comment: 'post by slack-upload-file for testing issue 529'

Please check this:

  • Does the file actually exist?
  • Does the Slack Token have permissions for files:write?

close by no response