Use env vars in GHA dependabot changelog (#14772)

This commit is contained in:
Erik Johnston 2023-01-04 16:46:25 +00:00 committed by GitHub
parent e787fb776c
commit 747f8eb231
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -20,8 +20,11 @@ jobs:
with: with:
ref: ${{ github.event.pull_request.head.ref }} ref: ${{ github.event.pull_request.head.ref }}
- name: Write, commit and push changelog - name: Write, commit and push changelog
env:
PR_TITLE: ${{ github.event.pull_request.title }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: | run: |
echo "${{ github.event.pull_request.title }}." > "changelog.d/${{ github.event.pull_request.number }}".misc echo "${PR_TITLE}." > "changelog.d/${PR_NUMBER}".misc
git add changelog.d git add changelog.d
git config user.email "github-actions[bot]@users.noreply.github.com" git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.name "GitHub Actions" git config user.name "GitHub Actions"

1
changelog.d/14772.misc Normal file
View File

@ -0,0 +1 @@
Change GHA CI job to follow best practices.