Skip to content

Commit

Permalink
Merge pull request #105 from telekom-mms/docs_for_release_secret
Browse files Browse the repository at this point in the history
document secret usage for release workflow
  • Loading branch information
rndmh3ro authored Nov 16, 2023
2 parents 9731106 + 1cd8c23 commit c1ec9d4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,18 @@ The action creates a new *draft* release and updates the changelog. Furthermore
The user then has to publish the new release.

The push step of this action used the [Github app](https://github.com/organizations/telekom-mms/settings/installations) "MMS branch protection as code"
to push to the main branch, bypassing branch protection rules.
to push to the main branch, bypassing branch protection rules. Make sure to pass the secret to the job (see the example).

#### Inputs

| inputs | description | type | required |
| ------ | --------------------------------------------- | ------ | -------- |
| files | files which should be included in the release | string | false |

| secrets | description | required |
| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| GH_BRANCH_PROTECTION_APP_TOKEN | password of the GitHub Application `MMS branch protection as code`, created by @jandd as an Organisation secret, scoped to specific repositories. Pass it exactly as described in the example below. | true |

#### Example Usage

``` yaml
Expand All @@ -196,7 +200,10 @@ on:
jobs:
release:
# docs: https://github.com/telekom-mms/.github#release
if: github.repository != '$TEMPLATE_REPOSITORY'
uses: telekom-mms/.github/.github/workflows/release.yml@main
secrets:
GH_BRANCH_PROTECTION_APP_TOKEN: ${{ secrets.GH_BRANCH_PROTECTION_APP_TOKEN }}
```

### Terraform Docs
Expand Down

0 comments on commit c1ec9d4

Please sign in to comment.