Skip to content

Commit 8d1c7d2

Browse files
authored
Merge pull request #73 from ApplauseOSS/fix/ci-publish-ownership
fix(CI): add permissions and author
2 parents 7666223 + 3afbdf3 commit 8d1c7d2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ on:
1919
default: "master"
2020
type: string
2121

22+
permissions:
23+
contents: write
24+
2225
jobs:
2326
publish:
2427
runs-on: ubuntu-latest
@@ -72,6 +75,8 @@ jobs:
7275
# Remove the org from the repo name
7376
GITHUB_REPO_NAME="${GITHUB_REPOSITORY#*/}"
7477
78+
git config --global user.name "github-actions[bot]"
79+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
7580
git config --global --add safe.directory "$(pwd -P)"
7681
git commit -am "GHA: release version \${VERSION}"
7782
git tag v\${VERSION} -am "GHA: publish public-$GITHUB_REPO_NAME v\${VERSION}"

0 commit comments

Comments
 (0)