rpmbuilder/.gitea/workflows/build.yaml
Ben Vincent 2aa7388f95
All checks were successful
Build / build (pull_request) Successful in 25s
feat: testing previous run id
2024-12-01 22:09:11 +11:00

53 lines
1.3 KiB
YAML

name: Build
on:
pull_request:
workflow_call:
workflow_dispatch:
jobs:
build:
runs-on: almalinux-8
container:
image: git.query.consul/unkin/almalinux8-runnerdnd:latest
options: --privileged
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Print env
run: |
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
run: |
find /workspace -type f -name "*.rpm"
#- name: Upload Artifacts
# uses: actions/upload-artifact@v3
# with:
# name: rpms
# path: /workspace/unkin/rpmbuilder/dist/*/*.rpm