diff --git a/app/controllers/crate/settings/new-trusted-publisher.js b/app/controllers/crate/settings/new-trusted-publisher.js index ff2eef1b3c1..2231c9b0534 100644 --- a/app/controllers/crate/settings/new-trusted-publisher.js +++ b/app/controllers/crate/settings/new-trusted-publisher.js @@ -27,6 +27,12 @@ export default class NewTrustedPublisherController extends Controller { return ['GitHub']; } + get repository() { + if (this.repositoryOwner && this.repositoryName) { + return `${this.repositoryOwner}/${this.repositoryName}`; + } + } + saveConfigTask = task(async () => { if (!this.validate()) return; diff --git a/app/templates/crate/settings/index.hbs b/app/templates/crate/settings/index.hbs index 1e797bfa3fc..a495b704fb5 100644 --- a/app/templates/crate/settings/index.hbs +++ b/app/templates/crate/settings/index.hbs @@ -81,8 +81,8 @@
.github/workflows/
directory of the repository configured above. For example: release.yml
or publish.yml
.
+ The filename of the publishing workflow. This file should be present in the
+
+ {{#if this.repository}}
+ .github/workflows/
+ {{else}}
+ .github/workflows/
+ {{/if}}
+
+ directory of the
+ {{#if this.repository}}{{this.repository}} {{/if}}
+ repository{{unless this.repository " configured above"}}.
+ For example: release.yml
or publish.yml
.