-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set ocobles as default user until we have an Equinix bot
Signed-off-by: Oscar Cobles <[email protected]>
- Loading branch information
Oscar Cobles
committed
Jul 17, 2024
1 parent
bfbc4f9
commit ca4d348
Showing
3 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,12 +10,21 @@ on: | |
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DEFAULT_PR_ASSIGN: ocobles | ||
jobs: | ||
upgrade_provider: | ||
if: ${{ contains(github.event.issue.title, 'Upgrade terraform-provider-') || github.event_name == 'workflow_dispatch' }} | ||
name: upgrade-provider | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set pr-assign variable | ||
id: set-pr-assign | ||
run: | | ||
if [ "${{ github.actor }}" == "github-actions[bot]" ]; then | ||
echo "PR_ASSIGN=${{ env.DEFAULT_PR_ASSIGN }}" >> $GITHUB_ENV | ||
else | ||
echo "PR_ASSIGN=${{ github.actor }}" >> $GITHUB_ENV | ||
fi | ||
- name: Call upgrade provider action | ||
# TODO(ocobles): upgrade-provider tool tries to assign the PR to the user who created it. | ||
# Since we don't have an Equinix bot user, we are using the GITHUB_TOKEN. This results in an | ||
|
@@ -30,3 +39,4 @@ jobs: | |
kind: all | ||
email: [email protected] | ||
username: GitHub | ||
pr-assign: ${{ env.PR_ASSIGN }} |