Skip to content

Commit

Permalink
ci: use github-actions[bot] for auto-commits (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyamahunt authored Aug 29, 2023
1 parent 636007f commit a1e6eac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ jobs:
const swiftorg = stdout.trim();
core.info(`Updating swiftorg to "${swiftorg}"`);
await exec.exec('npm', ['pkg', 'set', `swiftorg=${swiftorg}`]);
await exec.exec('git', ['config', '--global', 'user.name', 'github-actions']);
await exec.exec('git', ['config', '--global', 'user.email', 'github-actions@github.com']);
await exec.exec('git', ['config', '--global', 'user.name', 'github-actions[bot]']);
await exec.exec('git', ['config', '--global', 'user.email', '41898282+github-actions[bot]@users.noreply.github.com']);
await exec.exec('git', ['commit', '--all', '--message', `[skip ci] wip: update package.json`]);
await exec.exec('git', ['push']);
return true;
Expand Down Expand Up @@ -413,8 +413,8 @@ jobs:
with:
github-token: ${{ github.token }}
git-message: 'chore(CHANGELOG): update for {version}'
git-user-name: github-actions
git-user-email: github-actions@github.com
git-user-name: github-actions[bot]
git-user-email: 41898282+github-actions[bot]@users.noreply.github.com
release-count: 0
version-file: ./package.json
version-path: version
Expand All @@ -429,8 +429,8 @@ jobs:

- name: Update latest tag
run: |
git config --global user.name github-actions
git config --global user.email github-actions@github.com
git config --global user.name github-actions[bot]
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
git push origin :refs/tags/latest
git tag -fa latest -m latest
git push origin --tags
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[![CI/CD](https://github.com/SwiftyLab/setup-swift/actions/workflows/main.yml/badge.svg)](https://github.com/SwiftyLab/setup-swift/actions/workflows/main.yml)
[![CodeFactor](https://www.codefactor.io/repository/github/swiftylab/setup-swift/badge)](https://www.codefactor.io/repository/github/swiftylab/setup-swift)
[![codecov](https://codecov.io/gh/SwiftyLab/setup-swift/graph/badge.svg?token=XWfSpWQ6gC)](https://codecov.io/gh/SwiftyLab/setup-swift)
[![Static Badge](https://img.shields.io/badge/Get_it-from_Marketplace-blue?logo=github)](https://github.com/marketplace/actions/setup-swift-environment-for-macos-linux-and-windows)

![swift.org](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FSwiftyLab%2Fsetup-swift%2Fmain%2Fpackage.json&query=%24.swiftorg&logo=swift&logoColor=white&label=swift.org)

Expand Down

0 comments on commit a1e6eac

Please sign in to comment.