chore: add publish env (#1420)

* chore: add publish env

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>

* Update release.yml

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>

* Update merge.yml

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>

---------

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
This commit is contained in:
Todd Baert 2025-04-16 12:45:16 -04:00 committed by GitHub
parent a6389e89f6
commit 665dd51eb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -9,13 +9,15 @@ name: on-merge
on:
push:
branches: [ master, main ]
branches:
- main
permissions:
contents: read
jobs:
build:
environment: publish
runs-on: ubuntu-latest
steps:

View File

@ -12,6 +12,7 @@ permissions: # added using https://github.com/step-security/secure-workflows
jobs:
release-please:
environment: publish
permissions:
contents: write # for google-github-actions/release-please-action to create release commit
pull-requests: write # for google-github-actions/release-please-action to create release PR