-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.29 KB
/
test-prolong.yaml
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
39
40
41
42
43
---
name: test-prolong
on:
push: {}
workflow_dispatch:
inputs:
environment:
type: environment
default: production
jobs:
test-prolong:
runs-on: ubuntu-latest
environment: ${{ inputs.environment || 'production' }}
steps:
- uses: actions/checkout@v3
- run: echo -n SUCCESSFUL > .final_status
- name: Artifacts Upload
id: artifacts-upload
uses: ./
with:
url: ${{ vars.ARTIFACTS_URL }}
user: ${{ secrets.ARTIFACTS_USER }}
password: ${{ secrets.ARTIFACTS_PASSWORD }}
source: .final_status
method: upload
- name: Artifacts Prolong
id: artifacts-prolong
uses: ./
with:
url: ${{ vars.ARTIFACTS_URL }}
user: ${{ secrets.ARTIFACTS_USER }}
password: ${{ secrets.ARTIFACTS_PASSWORD }}
name: ${{ steps.artifacts-upload.outputs.name }}
method: prolong
- name: Print the artifacts name
run: |
echo ${{ steps.artifacts-prolong.outputs.name }}
echo ${{ steps.artifacts-prolong.outputs.link }}
- name: Get prolonged artifacts
run: |
curl -u ${{ secrets.ARTIFACTS_USER }}:${{ secrets.ARTIFACTS_PASSWORD }} ${{ steps.artifacts-prolong.outputs.link }}/.final_status