Commit Graph

9 Commits

Author SHA1 Message Date
George Joseph
b4017eadaf .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 1a7c9e0a04)
2025-03-20 18:29:21 +00:00
George Joseph
a96e42c326 .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 9822f6fd25)
2025-03-20 18:29:21 +00:00
George Joseph
007e281313 .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 896a488cd5)
2025-03-20 18:29:21 +00:00
George Joseph
b7eff883b1 .github: Move PRChanged,PRChangedPriv,PRCPCheck,PRReCheck,PRMerge logic.
Moved to asterisk-ci-actions reusable workflows.

(cherry picked from commit e09b4dd97f)
2025-03-20 18:29:21 +00:00
George Joseph
93a774447f .github: Changes required to use cached builds and shorten names
(cherry picked from commit 24d641f40a)
2024-11-14 20:01:34 +00:00
George Joseph
31ff20988c .github: Pass app_id and app_priv_key to AsteriskMergePR
(cherry picked from commit e0f7a5f968)
2024-07-11 13:23:24 +00:00
George Joseph
af9c9f9ebe .github: Change OnPRMergeApproved to use default token
(cherry picked from commit 3b55311eb1)
2024-07-11 13:23:24 +00:00
George Joseph
8c874c6c20 .github: Use ASTERISKTEAM_PAT for PR merging
(cherry picked from commit a9b74ffa52)
2024-07-11 13:23:24 +00:00
George Joseph
73c36d592e .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.

(cherry picked from commit b133383389)
2024-07-11 13:23:24 +00:00