Skip to content

Commit

Permalink
fix: attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Mar 29, 2022
1 parent 0110a97 commit 1f2a344
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/actions/upload-and-notify/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,34 +81,34 @@ runs:
fi
- name: Download minio client
if: runner.os == 'Linux' && ${{ steps.versions.outputs.version }} && ${{ steps.versions.outputs.branch }}
if: ${{ runner.os == 'Linux' && steps.versions.outputs.version && steps.versions.outputs.branch }}
shell: bash
run: |
wget https://dl.min.io/client/mc/release/linux-amd64/mc
chmod +x mc
- name: Download minio client
if: runner.os == 'Windows' && ${{ steps.versions.outputs.version }} && ${{ steps.versions.outputs.branch }}
if: ${{ runner.os == 'Windows' && steps.versions.outputs.version && steps.versions.outputs.branch }}
shell: pwsh
run: |
Invoke-WebRequest -Uri "https://dl.minio.io/client/mc/release/windows-amd64/mc.exe" -OutFile "./mc"
chmod +x mc
- name: Download minio client
if: runner.os == 'macOS' && ${{ steps.versions.outputs.version }} && ${{ steps.versions.outputs.branch }}
if: ${{ runner.os == 'macOS' && steps.versions.outputs.version && steps.versions.outputs.branch }}
shell: bash
run: |
wget https://dl.min.io/client/mc/release/darwin-amd64/mc
chmod +x mc
- name: Upload file
if: ${{ steps.versions.outputs.version }} && ${{ steps.versions.outputs.branch }}
if: ${{ steps.versions.outputs.version && steps.versions.outputs.branch }}
shell: bash
run: |
./mc alias set remote/ https://${{ inputs.s3-host }} ${{ inputs.s3-access-key }} ${{ inputs.s3-secret-key }}
./mc cp "${{ inputs.source-filename }}" "remote/${{ inputs.s3-bucket }}/${{ inputs.destination-filename }}"
- name: Notify API Server
if: ${{ steps.versions.outputs.version }} && ${{ steps.versions.outputs.branch }}
if: ${{ steps.versions.outputs.version && steps.versions.outputs.branch }}
shell: bash
run: |
curl -X 'POST' \
Expand Down

0 comments on commit 1f2a344

Please sign in to comment.