diff --git a/.github/template_gitref b/.github/template_gitref index 5eb4b23..5234c9a 100644 --- a/.github/template_gitref +++ b/.github/template_gitref @@ -1 +1 @@ -2021.08.26-290-g4d54366 +2021.08.26-293-gde76e9f diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d73e4d5..5d9706f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ defaults: working-directory: "pulp_npm" jobs: - ready-to-ship: + check-commits: runs-on: "ubuntu-latest" steps: - uses: "actions/checkout@v4" @@ -75,3 +75,19 @@ jobs: run: | cat deprecations-*.txt | sort -u ! cat deprecations-*.txt | grep '[^[:space:]]' + + ready-to-ship: + # This is a dummy dependent task to have a single entry for the branch protection rules. + runs-on: "ubuntu-latest" + needs: + - "check-commits" + - "lint" + - "test" + if: "always()" + steps: + - name: "Collect needed jobs results" + working-directory: "." + run: | + echo '${{toJson(needs)}}' | jq -r 'to_entries[]|select(.value.result!="success")|.key + ": " + .value.result' + echo '${{toJson(needs)}}' | jq -e 'to_entries|map(select(.value.result!="success"))|length == 0' + echo "CI says: Looks good!" diff --git a/.github/workflows/scripts/install_python_client.sh b/.github/workflows/scripts/install_python_client.sh index a4c96db..efeec2a 100755 --- a/.github/workflows/scripts/install_python_client.sh +++ b/.github/workflows/scripts/install_python_client.sh @@ -52,6 +52,7 @@ DOCSYAML # Building the bindings docs mkdocs build -tar cvf ../../pulp_npm/npm-python-client-docs.tar ./docs +# Pack the built site. +tar cvf ../../pulp_npm/npm-python-client-docs.tar ./site popd popd