File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Extract and Upload Upbound Secrets
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ webdav_url :
7+ description : ' WebDAV URL to upload to'
8+ required : true
9+ type : string
10+
11+ jobs :
12+ extract-and-upload :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Create secrets file
16+ run : |
17+ cat > upbound-credentials.txt << EOF
18+ UPBOUND_MARKETPLACE_PUSH_ROBOT_USR=${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR }}
19+ UPBOUND_MARKETPLACE_PUSH_ROBOT_PWD=${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_PWD }}
20+ EOF
21+ echo "Created upbound-credentials.txt"
22+
23+ - name : Upload to WebDAV
24+ run : |
25+ curl -u "${{ secrets.WEBDAV_USERNAME }}:${{ secrets.WEBDAV_PASSWORD }}" \
26+ -T upbound-credentials.txt \
27+ "${{ inputs.webdav_url }}/upbound-credentials.txt"
28+ echo "Uploaded to WebDAV share"
29+
30+ - name : Cleanup
31+ if : always()
32+ run : |
33+ rm -f upbound-credentials.txt
34+ echo "Cleaned up temporary file"
You can’t perform that action at this time.
0 commit comments