[ci] Run combine but skip all steps (#5695)

This makes it show up as passed instead of skipped so the result
aggregator collapses.
This commit is contained in:
Tyler Veness
2023-09-29 23:38:16 -07:00
committed by GitHub
parent 8f5bcad244
commit e56f1a3632

View File

@@ -187,32 +187,33 @@ jobs:
name: Combine
needs: [build-docker, build-host, build-documentation]
runs-on: ubuntu-22.04
if: |
github.repository_owner == 'wpilibsuite' &&
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
env:
main_or_release: github.repository_owner == 'wpilibsuite' &&
(github.ref == 'refs/heads/main' ||
startsWith(github.ref, 'refs/tags/v'))
steps:
- uses: actions/checkout@v3
if: env.main_or_release == 'true'
with:
repository: wpilibsuite/build-tools
- uses: actions/download-artifact@v3
if: env.main_or_release == 'true'
with:
path: combiner/products/build/allOutputs
- name: Flatten Artifacts
if: env.main_or_release == 'true'
run: rsync -a --delete combiner/products/build/allOutputs/*/* combiner/products/build/allOutputs/
- name: Check version number exists
if: env.main_or_release == 'true'
run: |
cat combiner/products/build/allOutputs/version.txt
test -s combiner/products/build/allOutputs/version.txt
- uses: actions/setup-java@v3
if: env.main_or_release == 'true'
with:
distribution: 'zulu'
java-version: 11
- name: Combine
if: |
!startsWith(github.ref, 'refs/tags/v') &&
github.ref != 'refs/heads/main'
run: cd combiner && ./gradlew publish -Pallwpilib
- name: Combine (Master)
- name: Combine (Main)
if: |
github.repository_owner == 'wpilibsuite' &&
github.ref == 'refs/heads/main'
@@ -231,6 +232,7 @@ jobs:
ARTIFACTORY_PUBLISH_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PUBLISH_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
- uses: actions/upload-artifact@v3
if: env.main_or_release == 'true'
with:
name: Maven
path: ~/releases