diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8d59ba3..543c839 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,6 +19,9 @@ on: default: "master" type: string +permissions: + contents: write + jobs: publish: runs-on: ubuntu-latest @@ -72,6 +75,8 @@ jobs: # Remove the org from the repo name GITHUB_REPO_NAME="${GITHUB_REPOSITORY#*/}" + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global --add safe.directory "$(pwd -P)" git commit -am "GHA: release version \${VERSION}" git tag v\${VERSION} -am "GHA: publish public-$GITHUB_REPO_NAME v\${VERSION}"