summary refs log tree commit diff
path: root/.github/workflows
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2023-01-04 16:46:25 +0000
committerGitHub <noreply@github.com>2023-01-04 16:46:25 +0000
commit747f8eb2311099f4f8b6c0c76f3105a941fbb6bb (patch)
tree5e808c9f028a4492b290804fec1cd6b7e478d157 /.github/workflows
parentSwitch to our fork of dh-virtualenv for compatibility with Python 3.11 (#14774) (diff)
downloadsynapse-747f8eb2311099f4f8b6c0c76f3105a941fbb6bb.tar.xz
Use env vars in GHA dependabot changelog (#14772)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/dependabot_changelog.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/dependabot_changelog.yml b/.github/workflows/dependabot_changelog.yml
index b6a29a5722..df47e3dcba 100644
--- a/.github/workflows/dependabot_changelog.yml
+++ b/.github/workflows/dependabot_changelog.yml
@@ -6,7 +6,7 @@ on:
       - reopened  # For debugging!
 
 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
   # for a similar example
   contents: write
@@ -20,8 +20,11 @@ jobs:
         with:
           ref: ${{ github.event.pull_request.head.ref }}
       - name: Write, commit and push changelog
+        env:
+          PR_TITLE: ${{ github.event.pull_request.title }}
+          PR_NUMBER: ${{ github.event.pull_request.number }}
         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 config user.email "github-actions[bot]@users.noreply.github.com"
           git config user.name "GitHub Actions"