Commit Graph

9 Commits

Author SHA1 Message Date
George Joseph fc1de1f290 .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`.

(cherry picked from commit 313608837e)
2025-03-20 18:34:08 +00:00
George Joseph 02bdc2dc37 .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

(cherry picked from commit ebb33475bc)
2025-03-20 18:34:07 +00:00
George Joseph ba1626df89 .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. :(

(cherry picked from commit d53f96b6af)
2025-03-20 18:34:07 +00:00
George Joseph 86ff4b8a5b .github: Move PRChanged,PRChangedPriv,PRCPCheck,PRReCheck,PRMerge logic.
Moved to asterisk-ci-actions reusable workflows.

(cherry picked from commit 595739a21c)
2025-03-20 18:34:07 +00:00
George Joseph 7788fac511 .github: Changes required to use cached builds and shorten names
(cherry picked from commit 6c0fa2274b)
2024-11-14 20:02:03 +00: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