Stirling-PDF/.github/workflows
Ludy 882170ebc9
ci: improve PR deployment workflow and labeling (#3842)
# Description of Changes

- Updated the labeler rules in `.github/labeler-config-srvaroa.yml` to
support optional scope (e.g., `feat(api):`) for all conventional commit
prefixes.
- Added broader matching for API-related PRs by including `swagger` and
`api` keywords in title matching.
- Introduced a new `pr-deployed` label in `.github/labels.yml` to
indicate that a PR has been deployed to a test environment.
- Enhanced the `PR-Demo-Comment-with-react.yml` workflow:
- Replaced `create-github-app-token` with a local `setup-bot` action to
standardize GitHub App auth.
  - Added logic to automatically label deployed PRs with `pr-deployed`.
  - Added cleanup logic for temporary files after workflow execution.
- Improved the `PR-Demo-cleanup.yml` workflow:
- Triggered now on `pull_request_target` instead of `pull_request` for
better permission context.
- Automatically removes the `pr-deployed` label and any bot-generated
deployment comment when a PR is closed.
  - Added proper GitHub App auth handling via `setup-bot`.
- Ensured conditional cleanup only occurs if relevant artifacts are
present.

try:
https://github.com/Stirling-Tools/Stirling-PDF/security/code-scanning/240

---

## Checklist

### General

- [x] I have read the [Contribution
Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md)
- [x] I have read the [Stirling-PDF Developer
Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md)
(if applicable)
- [ ] I have read the [How to add new languages to
Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md)
(if applicable)
- [x] I have performed a self-review of my own code
- [x] My changes generate no new warnings

### Documentation

- [ ] I have updated relevant docs on [Stirling-PDF's doc
repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/)
(if functionality has heavily changed)
- [ ] I have read the section [Add New Translation
Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md#add-new-translation-tags)
(for new translation tags only)

### UI Changes (if applicable)

- [ ] Screenshots or videos demonstrating the UI changes are attached
(e.g., as comments or direct attachments in the PR)

### Testing (if applicable)

- [ ] I have tested my changes locally. Refer to the [Testing
Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md#6-testing)
for more details.
2025-07-14 11:57:46 +01:00
..
ai_pr_title_review.yml chore(deps): bump step-security/harden-runner from 2.12.1 to 2.12.2 (#3849) 2025-07-01 15:39:12 +01:00
auto-labeler.yml chore(deps): bump step-security/harden-runner from 2.12.1 to 2.12.2 (#3849) 2025-07-01 15:39:12 +01:00
auto-labelerV2.yml chore(deps): bump step-security/harden-runner from 2.12.1 to 2.12.2 (#3849) 2025-07-01 15:39:12 +01:00
build.yml chore(deps): bump step-security/harden-runner from 2.12.1 to 2.12.2 (#3849) 2025-07-01 15:39:12 +01:00
check_properties.yml chore(deps): bump step-security/harden-runner from 2.12.1 to 2.12.2 (#3849) 2025-07-01 15:39:12 +01:00
codeql.yml-disabled Bump: Harden Runner from v2.10.2 to v2.10.3 (#2686) 2025-01-13 22:26:05 +00:00
dependency-review.yml chore(deps): bump step-security/harden-runner from 2.12.1 to 2.12.2 (#3849) 2025-07-01 15:39:12 +01:00
licenses-update.yml chore(deps): bump step-security/harden-runner from 2.12.1 to 2.12.2 (#3849) 2025-07-01 15:39:12 +01:00
manage-label.yml chore(deps): bump step-security/harden-runner from 2.12.1 to 2.12.2 (#3849) 2025-07-01 15:39:12 +01:00
multiOSReleases.yml [StepSecurity] ci: Harden GitHub Actions (#3901) 2025-07-07 22:21:58 +01:00
PR-Demo-cleanup.yml ci: improve PR deployment workflow and labeling (#3842) 2025-07-14 11:57:46 +01:00
PR-Demo-Comment-with-react.yml ci: improve PR deployment workflow and labeling (#3842) 2025-07-14 11:57:46 +01:00
pre_commit.yml chore(deps): bump step-security/harden-runner from 2.12.1 to 2.12.2 (#3849) 2025-07-01 15:39:12 +01:00
push-docker.yml Update push-docker.yml 2025-07-03 20:20:23 +01:00
releaseArtifacts.yml chore(deps): bump sigstore/cosign-installer from 3.9.0 to 3.9.1 (#3801) 2025-07-01 15:40:09 +01:00
scorecards.yml chore(deps): bump step-security/harden-runner from 2.12.1 to 2.12.2 (#3849) 2025-07-01 15:39:12 +01:00
sonarqube.yml chore(deps): bump step-security/harden-runner from 2.12.1 to 2.12.2 (#3849) 2025-07-01 15:39:12 +01:00
stale.yml chore(deps): bump step-security/harden-runner from 2.12.1 to 2.12.2 (#3849) 2025-07-01 15:39:12 +01:00
swagger.yml chore(deps): bump step-security/harden-runner from 2.12.1 to 2.12.2 (#3849) 2025-07-01 15:39:12 +01:00
sync_files.yml chore: include ignore_translation.toml in README sync commit (#3845) 2025-07-01 15:49:58 +01:00
testdriver.yml chore(deps): bump step-security/harden-runner from 2.12.1 to 2.12.2 (#3849) 2025-07-01 15:39:12 +01:00