-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 941 Bytes
/
share-artifacts.yaml
File metadata and controls
38 lines (34 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
on:
push: {}
workflow_dispatch: {}
name: share artifacts
jobs:
build:
runs-on: ubuntu-latest
outputs:
artifacts-name: ${{ steps.artifacts.outputs.name }}
artifacts-link: ${{ steps.artifacts.outputs.link }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: artifacts upload
id: artifacts
uses: ./
with:
url: https://artifacts.scality.net
user: ${{ secrets.ARTIFACTS_USER }}
password: ${{ secrets.ARTIFACTS_PASSWORD }}
source: action.yaml
method: upload
test:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Retrieve file
run: |
curl -u ${{ secrets.ARTIFACTS_USER }}:${{ secrets.ARTIFACTS_PASSWORD }} ${{ needs.build.outputs.artifacts-link }}/action.yaml -o /tmp/action.yaml
- name: Show file content
run: cat /tmp/action.yaml