feat: custom download artifacts
All checks were successful
Build / build (pull_request) Successful in 33s
All checks were successful
Build / build (pull_request) Successful in 33s
- download the previous runs artifacts, unzip and deploy
This commit is contained in:
parent
c6ede08d51
commit
9000eaa947
@ -17,20 +17,12 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Create dist directory
|
- name: Download Artifacts
|
||||||
run: |
|
run: |
|
||||||
mkdir -p /workspace/unkin/rpmbuilder/dist
|
mkdir -p /workspace/unkin/rpmbuilder/dist
|
||||||
|
export PREVIOUS_RUN_ID=$((GITHUB_RUN_NUMBER - 1))
|
||||||
- name: Download artifact
|
curl -L -o /workspace/rpms.zip "https://git.query.consul/${GITHUB_REPOSITORY}/actions/runs/${PREVIOUS_RUN_ID}/artifacts/rpms"
|
||||||
id: download-artifact
|
unzip /workspace/rpms.zip -d /workspace/unkin/rpmbuilder/dist
|
||||||
uses: dawidd6/action-download-artifact@v6
|
|
||||||
with:
|
|
||||||
workflow: build
|
|
||||||
workflow_search: true
|
|
||||||
workflow_conclusion: completed
|
|
||||||
name: rpm
|
|
||||||
path: /workspace/unkin/rpmbuilder/dist
|
|
||||||
search_artifacts: true
|
|
||||||
|
|
||||||
- name: Show RPMs
|
- name: Show RPMs
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
5
|
6
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user