Skip to content

Commit

Permalink
ci: static user and email
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoyaferrer authored Apr 22, 2024
1 parent 9b75f39 commit f5a2440
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/incremental-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:
run: |
echo y | sf plugins:install sfdx-git-delta
if [ "${{ inputs.validateOnly }}" = "true" ]; then
git config user.email "${{ vars.GH_ACTION_BOT_EMAIL }}"
git config user.name "${{ vars.GH_ACTION_BOT_USERNAME }}"
git config user.email "github-actions[bot]"
git config user.name "github-actions[bot]@users.noreply.github.com"
git merge "${{ inputs.baseRef }}"
fi
mkdir -p deltas
Expand Down
15 changes: 1 addition & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,20 +133,7 @@ Create a GitHub Action Secret (`Settings > Secrets and variables > Actions > Sec
| -------------------------- | -------------------------------- |
| `SFDX_AUTH_URL_TARGET_ORG` | `<PASTE_THE_SFDX_AUTH_URL_HERE>` |

## Step 3: Setup Github variables

Create a the following Github Variables (`Settings > Secrets and variables > Actions > Variables > New repository variable`):

| Name | Secret |
| -------------------------- | -------------------------------- |
| `GH_ACTION_BOT_USERNAME` | `<userId>+github-actions[bot]@users.noreply.github.com` |
| `GH_ACTION_BOT_EMAIL` | `github-actions[bot]` |

For `GH_ACTION_BOT_USERNAME`, replace `userId` with the correct value (see more in [this discussion](https://github.com/orgs/community/discussions/26560#discussioncomment-3252341)).

Note: The above git config variables are required in order that the Github actions can perform some commands such as `git merge` withing the scripts.

## Step 4: Validate
## Step 3: Validate

- Create a PR and verify the Action was run successfully
- Merge the PR and verify the Action was run successfully

0 comments on commit f5a2440

Please sign in to comment.