fix secrets trying to apply to fork pr #957
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: change log | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- labeled | |
- unlabeled | |
env: | |
RUST_TOOLCHAIN: nightly | |
SHA: ${{ github.event.pull_request.head.sha || github.sha }} | |
jobs: | |
check: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ env.SHA }} | |
- name: Setup Rust | |
uses: ./.github/actions/setup-rust | |
with: | |
toolchain: ${{ env.RUST_TOOLCHAIN }} | |
shared_key: change-log | |
tools: just | |
- name: Check change log entry | |
run: cargo +${{ env.RUST_TOOLCHAIN }} xtask change-log check-pr ${{ github.event.pull_request.number }} --required=${{ env.REQUIRED }} | |
env: | |
REQUIRED: ${{ !contains(github.event.pull_request.labels.*.name, 'change-log-not-required') }} |