feat: testing previous run id
Some checks failed
Build / build (pull_request) Failing after 4s

This commit is contained in:
Ben Vincent 2024-12-01 21:56:19 +11:00
parent c6ede08d51
commit 99b8700aa5

View File

@ -16,16 +16,36 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: Build Packages
- name: Print env
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 -H https://git.query.consul/unkin/rpmbuilder/actions/runs/43/artifacts/rpms"
unzip /workspace/rpms.zip
#- name: Build Packages
# run: |
# make all
- name: Show RPMs
run: |
find /workspace -type f -name "*.rpm"
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: rpms
path: /workspace/unkin/rpmbuilder/dist/*/*.rpm
#- name: Upload Artifacts
# uses: actions/upload-artifact@v3
# with:
# name: rpms
# path: /workspace/unkin/rpmbuilder/dist/*/*.rpm