From 0314adfd52e31237c78693c352ea77b9f7dcd3a3 Mon Sep 17 00:00:00 2001 From: "Max.Bed4d" Date: Wed, 7 Feb 2024 17:04:04 +0000 Subject: [PATCH] Add skip with message to this job. --- .github/workflows/package-sync-version-test-pulp.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/package-sync-version-test-pulp.yml b/.github/workflows/package-sync-version-test-pulp.yml index 00b2d66f..688c8a9c 100644 --- a/.github/workflows/package-sync-version-test-pulp.yml +++ b/.github/workflows/package-sync-version-test-pulp.yml @@ -14,9 +14,12 @@ on: required: false default: "" + env: ANSIBLE_FORCE_COLOR: True ANSIBLE_VAULT_PASSWORD_FILE: ${{ github.workspace }}/vault-pass + skip_pulp: true + jobs: package-sync-version-test: @@ -25,12 +28,15 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + if: env.skip_pulp == false - name: Setup Release Train & dependencies uses: ./.github/actions/setup with: vault-password: ${{ secrets.ANSIBLE_VAULT_PASSWORD }} vault-password-file: ${{ env.ANSIBLE_VAULT_PASSWORD_FILE }} + if: env.skip_pulp == false + - name: Sync and publish package repositories in test run: | @@ -42,6 +48,12 @@ jobs: -e test_pulp_sync_repo_version="'$REPO_VERSION'" \ -e deb_package_repo_filter="'$FILTER'" \ -e rpm_package_repo_filter="'$FILTER'" + if: env.skip_pulp == false env: FILTER: ${{ github.event.inputs.filter }} REPO_VERSION: ${{ github.event.inputs.repo_version }} + + - name: Message if skipping Pulp + run: | + echo "PULP CURRENTLY NOT AVAILABLE -> -> -> Skipping Pulp Sync" + if: env.skip_pulp == true \ No newline at end of file