mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2026-02-15 14:42:15 +00:00
Update actions to verify binaries are present
This commit is contained in:
parent
f535b6cc48
commit
d3e3cecfe1
18
.github/workflows/action-tests.yml
vendored
18
.github/workflows/action-tests.yml
vendored
|
|
@ -17,6 +17,24 @@ env:
|
|||
SHELLOPTS: errexit:pipefail
|
||||
|
||||
jobs:
|
||||
check_distribute_and_build:
|
||||
runs-on: ubuntu-latest
|
||||
name: Check and build distribute if needed
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Check if distribute directory exists
|
||||
id: check_distribute
|
||||
run: |
|
||||
if [ ! -d "distribute" ]; then
|
||||
echo "distribute_exists=false" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "distribute_exists=true" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
- name: Trigger build-distribute workflow
|
||||
if: steps.check_distribute.outputs.distribute_exists == 'false'
|
||||
uses: ./.github/workflows/build-distribute.yml
|
||||
with:
|
||||
ref: ${{ github.ref }}
|
||||
list_all_versions:
|
||||
runs-on: ubuntu-latest
|
||||
name: List all package versions (including deps).
|
||||
|
|
|
|||
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
|
|
@ -14,6 +14,24 @@ env:
|
|||
DEBUG: false
|
||||
SHELLOPTS: errexit:pipefail
|
||||
jobs:
|
||||
check_distribute_and_build:
|
||||
runs-on: ubuntu-latest
|
||||
name: Check and build distribute if needed
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Check if distribute directory exists
|
||||
id: check_distribute
|
||||
run: |
|
||||
if [ ! -d "distribute" ]; then
|
||||
echo "distribute_exists=false" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "distribute_exists=true" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
- name: Trigger build-distribute workflow
|
||||
if: steps.check_distribute.outputs.distribute_exists == 'false'
|
||||
uses: ./.github/workflows/build-distribute.yml
|
||||
with:
|
||||
ref: ${{ github.ref }}
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
|
|||
18
.github/workflows/pr.yml
vendored
18
.github/workflows/pr.yml
vendored
|
|
@ -8,6 +8,24 @@ concurrency:
|
|||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
check_distribute_and_build:
|
||||
runs-on: ubuntu-latest
|
||||
name: Check and build distribute if needed
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Check if distribute directory exists
|
||||
id: check_distribute
|
||||
run: |
|
||||
if [ ! -d "distribute" ]; then
|
||||
echo "distribute_exists=false" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "distribute_exists=true" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
- name: Trigger build-distribute workflow
|
||||
if: steps.check_distribute.outputs.distribute_exists == 'false'
|
||||
uses: ./.github/workflows/build-distribute.yml
|
||||
with:
|
||||
ref: ${{ github.ref }}
|
||||
trunk_check:
|
||||
name: Trunk Code Quality Runner
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
Loading…
Reference in a new issue