Commit Graph

9 Commits

Author SHA1 Message Date
George Joseph
4075d35ed3 .github: Change concurrency group ids so they're unique.
GitHub strikes again.  Apparently the github.ref context variable only
contains the PR number if the workflow is triggered by "pull_request" so
since we just changed the trigger to "pull_request_target" the variable
no longer contains the PR number and is therefore not unique and can't be
used as a concurrency group id.  We now use
`github.triggering_actor-github.head_ref`.
2025-02-20 10:40:04 -07:00
George Joseph
e65bf88bcf .github: Refactor to use pull_request_target trigger.
After careful review, we believe we can now use the "pull_request_target"
workflow trigger instead of "pull_request" which required a separate
privliged workflow to add labels and comments to PRs when they are submitted
or updated.  This allows us to greatly streamline our workflows and remove
unneeded ones.

* The OnPRChanged workflow was...
  * Renamed to OnPRCheck
  * Changed to trigger on pull_request_target and the "recheckpr" label.
  * Changed to simply call reusable workflows in asterisk-ci-actions.
  * Changed to use better concurrency groups.
* The OnPRCPCheck and OnPRMergeApproved workflows were also...
  * Changed to simply call reusable workflows in asterisk-ci-actions.
  * Changed to use better concurrency groups.
* The NightlyTest and CreateDocs were also tweaked
2025-02-16 12:18:39 -07:00
George Joseph
1f1fa06f69 .github: Remove concurrency check in on-labelled workflows.
Apparently you can't use `${{ github.event.number }}` in a concurrency
block in a job that calls a reusable workflow. :(
2025-02-11 14:04:35 -07:00
George Joseph
d55b072a93 .github: Move PRChanged,PRChangedPriv,PRCPCheck,PRReCheck,PRMerge logic.
Moved to asterisk-ci-actions reusable workflows.
2025-02-11 11:13:15 -07:00
George Joseph
7f2776129d .github: Changes required to use cached builds and shorten names 2024-09-18 07:59:19 -06:00
George Joseph
c0d8831636 .github: Pass app_id and app_priv_key to AsteriskMergePR 2024-07-10 10:38:00 -06:00
George Joseph
6cce75409e .github: Change OnPRMergeApproved to use default token 2024-07-10 09:24:28 -06:00
George Joseph
e5b6a5be5e .github: Use ASTERISKTEAM_PAT for PR merging 2024-06-28 13:41:32 -06:00
George Joseph
6feaed5f94 .github: Replace PR workflows with stubs that call reusables
The PR workflows now are just stubs that call reusable
workflows located in the asterisk-ci-actions repo.
2024-06-25 07:07:39 -06:00