Compare commits
1 Commits
9000eaa947
...
2aa7388f95
| Author | SHA1 | Date | |
|---|---|---|---|
| 2aa7388f95 |
@ -16,16 +16,37 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Build Packages
|
- name: Print env
|
||||||
run: |
|
run: |
|
||||||
make all
|
env
|
||||||
|
|
||||||
|
- name: Get Current Run ID
|
||||||
|
run: |
|
||||||
|
echo "Current Run ID: $GITHUB_RUN_NUMBER"
|
||||||
|
|
||||||
|
- name: Calculate Previous Run ID
|
||||||
|
id: calculate_previous_run
|
||||||
|
run: |
|
||||||
|
PREVIOUS_RUN_ID=$((GITHUB_RUN_NUMBER - 1))
|
||||||
|
echo "Previous Run ID: $PREVIOUS_RUN_ID"
|
||||||
|
echo "::set-output name=previous_run_id::$PREVIOUS_RUN_ID"
|
||||||
|
|
||||||
|
- name: Download artifact
|
||||||
|
run: |
|
||||||
|
curl -L -o /workspace/rpms.zip "https://git.query.consul/unkin/rpmbuilder/actions/runs/43/artifacts/rpms"
|
||||||
|
dnf install unzip -y
|
||||||
|
unzip /workspace/rpms.zip -d /workspace
|
||||||
|
|
||||||
|
#- name: Build Packages
|
||||||
|
# run: |
|
||||||
|
# make all
|
||||||
|
|
||||||
- name: Show RPMs
|
- name: Show RPMs
|
||||||
run: |
|
run: |
|
||||||
find /workspace -type f -name "*.rpm"
|
find /workspace -type f -name "*.rpm"
|
||||||
|
|
||||||
- name: Upload Artifacts
|
#- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
# uses: actions/upload-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: rpms
|
# name: rpms
|
||||||
path: /workspace/unkin/rpmbuilder/dist/*/*.rpm
|
# path: /workspace/unkin/rpmbuilder/dist/*/*.rpm
|
||||||
|
|||||||
@ -17,12 +17,20 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Download Artifacts
|
- name: Create dist directory
|
||||||
run: |
|
run: |
|
||||||
mkdir -p /workspace/unkin/rpmbuilder/dist
|
mkdir -p /workspace/unkin/rpmbuilder/dist
|
||||||
export PREVIOUS_RUN_ID=$((GITHUB_RUN_NUMBER - 1))
|
|
||||||
curl -L -o /workspace/rpms.zip "https://git.query.consul/${GITHUB_REPOSITORY}/actions/runs/${PREVIOUS_RUN_ID}/artifacts/rpms"
|
- name: Download artifact
|
||||||
unzip /workspace/rpms.zip -d /workspace/unkin/rpmbuilder/dist
|
id: download-artifact
|
||||||
|
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 @@
|
|||||||
6
|
5
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user