Skip to content

Commit 5a6afd3

Browse files
authored
Update update-requirements.yml
1 parent b94d6da commit 5a6afd3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/update-requirements.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ concurrency:
2626
permissions: read-all
2727

2828
jobs:
29-
test-examples:
29+
update-requirements:
3030
name: Test examples
3131
runs-on: ubuntu-latest
3232
timeout-minutes: 90
@@ -59,9 +59,13 @@ jobs:
5959
run: |
6060
BRANCH_NAME="update-requirements-$(date +%Y%m%d%H%M%S)"
6161
git checkout -b "${BRANCH_NAME}"
62-
git config --global user.email "github-actions@github.com"
62+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
6363
git config --global user.name "GitHub Actions Bot"
6464
git add requirements.txt
6565
git commit -m "Update requirements.txt"
6666
git push origin "$BRANCH_NAME"
67-
gh pr create --base "${GITHUB_BASE_REF:-main}" --head "$BRANCH_NAME" --title "Update requirements.txt" --body ''
67+
gh pr create \
68+
--base "${GITHUB_BASE_REF:-main}" \
69+
--head "$BRANCH_NAME" \
70+
--title "Update requirements.txt" \
71+
--body 'Automatically generated by GitHub Action.'

0 commit comments

Comments
 (0)