Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changes/unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@

## Bug

* #909: Updated `cd.yml` workflow so that `cd-extension.yml` workflow depends on `build-and-publish`. This ensures that the custom release workflow only runs when the PyPi release was successful.
* #910: Add `gh-pages.yml` to be ignored when `has_documentation=False` in the `PROJECT_CONFIG`
2 changes: 2 additions & 0 deletions doc/user_guide/features/github_workflows/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ and is maintained by the PTB and what is project-specific.
* - ``cd-extension.yml``
- Workflow call
- This extends the ``cd.yml``. Use it to add project-specific release steps.
Runs after ``build-and-publish.yml`` workflow has finished successfully.
* - ``merge-gate-extension.yml``
- Workflow call
- This extends the ``merge-gate.yml`` and the ``needs`` criteria of the job
Expand Down Expand Up @@ -287,6 +288,7 @@ to main. This starts the release process by activating the ``cd.yml`` workflow.

%% Dependencies / Waiting (Dotted Lines)
check-release-tag -.->|needs| build-and-publish[build-and-publish.yml]
build-and-publish -.->|needs| cd-extension[cd-extension.yml]
build-and-publish -.->|needs| gh-pages[gh-pages.yml]

.. _automated_activities:
Expand Down
4 changes: 2 additions & 2 deletions exasol/toolbox/templates/github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
name: Extension
uses: ./.github/workflows/cd-extension.yml
needs:
- check-release-tag
- build-and-publish
Comment thread
kaklakariada marked this conversation as resolved.
Comment thread
ArBridgeman marked this conversation as resolved.
(% if custom_workflows["cd-extension"].secrets %)
secrets:
(% for secret_name in custom_workflows["cd-extension"].secrets %)
Expand All @@ -50,4 +50,4 @@ jobs:
contents: read
pages: write
id-token: write
(% endif %)
(% endif %)
2 changes: 1 addition & 1 deletion exasol/toolbox/util/workflows/process_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def _remove_job_from_needs(self, job_name: str) -> None:
needs_without_removed_job = [need for need in needs if need != job_name]
if len(needs_without_removed_job) == 0:
other_job.pop("needs")
return
continue
other_job["needs"] = needs_without_removed_job

def _verify_job_exists(self, job_name: str) -> None:
Expand Down