Skip to content

Cleanup workflow to notify swtools-app-docs workflow#606

Merged
datenreisender merged 5 commits into
mainfrom
push-wwrorxroqzts
May 26, 2026
Merged

Cleanup workflow to notify swtools-app-docs workflow#606
datenreisender merged 5 commits into
mainfrom
push-wwrorxroqzts

Conversation

@datenreisender
Copy link
Copy Markdown
Contributor

This should eventually be moved to shared, probably replacing the code at the end of release-app.yml. But before that I want to clean it up here.

We always only use `inputs.ref` without ` || github.ref`. If
`inputs.ref` is undefined, this falls back to the default ref, which is
just what we want in those cases.
The 'on: release' trigger would cause too many runs of the
docs-notify-swtools-repo.yml workflow:

- When a release is created through the release.yml workflow, the
  docs-notify-swtools-repo.yml workflow is already triggered explicitly,
  so that trigger would cause the workflow to run twice.
- When a pre-release is created manually, the trigger would also cause
  the workflow to run, which is probably not intended.

Removing this trigger also simplifies the rest of the workflow.
@github-actions

This comment has been minimized.

@datenreisender datenreisender added doc not required All PRs either need "doc required" or "doc not required". ui not required All PRs either need "ui required" or "ui not required". labels May 25, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR cleans up the GitHub Actions workflow used to notify the swtools-app-docs repository about a new pc-nrfconnect-ppk release, shifting the workflow toward being called explicitly with a ref and simplifying tag derivation from package.json.

Changes:

  • Simplified docs-notify-swtools-repo.yml by removing the release event trigger and inline release-tag resolution, and instead deriving the tag from package.json.
  • Updated release.yml to pass only ${{ inputs.ref }} to the notification workflow (removing the previous fallback behavior).
  • Adjusted the GitHub App token step configuration (but currently with an incompatible input name).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/release.yml Updates how the notify workflow is invoked, passing along the ref input directly.
.github/workflows/docs-notify-swtools-repo.yml Simplifies notification workflow triggers and tag resolution; updates checkout behavior and GitHub App token creation inputs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/release.yml
Comment thread .github/workflows/docs-notify-swtools-repo.yml
Comment thread .github/workflows/docs-notify-swtools-repo.yml
When invoking docs-notify-swtools-repo.yml manually, one should always
provide an explicit ref.
SlavaNordic
SlavaNordic previously approved these changes May 25, 2026
@datenreisender datenreisender merged commit c2a6699 into main May 26, 2026
3 checks passed
@datenreisender datenreisender deleted the push-wwrorxroqzts branch May 26, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc not required All PRs either need "doc required" or "doc not required". ui not required All PRs either need "ui required" or "ui not required".

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants