GitHub Actions Permissions Test #5
Workflow file for this run
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
name: changelog | |
on: pull_request_target | |
permissions: write-all | |
jobs: | |
amend: | |
name: "Add PR links to staged changelogs" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
- name: "Amend and push any staged changelogs" | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
TARGET_SHA: ${{ github.event.pull_request.head.sha }} | |
PR_TITLE: ${{ github.event.pull_request.title }} | |
run: | | |
git fetch origin ${{ github.base_ref }} | |
./.changes/amend --review-comment |