Skip to content
Snippets Groups Projects
Unverified Commit 747f8eb2 authored by Erik Johnston's avatar Erik Johnston Committed by GitHub
Browse files

Use env vars in GHA dependabot changelog (#14772)

parent e787fb77
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ on: ...@@ -6,7 +6,7 @@ on:
- reopened # For debugging! - reopened # For debugging!
permissions: permissions:
# Needed to be able to push the commit. See # Needed to be able to push the commit. See
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request # https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request
# for a similar example # for a similar example
contents: write contents: write
...@@ -20,8 +20,11 @@ jobs: ...@@ -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"
......
Change GHA CI job to follow best practices.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment