Commit Graph

74 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
2c74f2d774 .github: Refactor Releaser to use reusable workflow
(cherry picked from commit a935133eeb)
2025-03-20 18:29:21 +00:00
George Joseph
c58a351268 .github: Change branch of reusable workflows to main.
(cherry picked from commit e8399bcc53)
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
e10c33d251 .github: OnPRCherryPickTest,OnPRStateChanged,OnPRRecheck: Add job summaries.
...and refactor environment variables.

(cherry picked from commit 478fbbb828)
2025-03-20 18:29:21 +00:00
George Joseph
d970e14a4d .github: Clean up CreateDocs
(cherry picked from commit 83fe05ea20)
2025-03-20 18:29:21 +00:00
George Joseph
c38c3de063 .github: Set exit 0 in CherryPick and Recheck workflow Cleanup steps
(cherry picked from commit aff11f717f)
2025-01-23 18:39:41 +00:00
George Joseph
7d3ab32291 .github: Change the run name for OnPRStateChangedPriv
(cherry picked from commit e98887f3dc)
2025-01-23 18:39:41 +00:00
George Joseph
fc8c518709 .github: Redirect NightlyAdmin to AsteriskNightlyAdmin
(cherry picked from commit 3b2bde6c48)
2024-11-14 20:01:34 +00:00
George Joseph
4ea6f819ee .github: NightlyAdmin now calls external CloseStaleIssuesAndPRs
(cherry picked from commit ce322ad16a)
2024-11-14 20:01:34 +00:00
George Joseph
c4ba44db52 .github: Fix realtime param on Weekly and Nightly tests and...
Rename the "Cleanup" job in the cherry-pick and recheck jobs
to "Summary".

(cherry picked from commit 94237f684a)
2024-11-14 20:01:34 +00:00
George Joseph
96e6144d55 .github: Add WeeklyTests and make Nightlies Monday-Saturday
...and add "realtime" option.

(cherry picked from commit 60ad3efc9d)
2024-11-14 20:01:34 +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
894e509b08 .github: Allow testing an Asterisk PR against a testsuite PR
(cherry picked from commit d189b5a4d7)
2024-09-12 18:46:27 +00:00
George Joseph
ee7fe23cda .github: Add params to Releaser for FPBX issue creation
(cherry picked from commit cf09da519e)
2024-09-12 18:46:27 +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
George Joseph
0e0be7070b .github: Refactor NightlyTests to use workflow in asterisk-ci-actions
(cherry picked from commit b867fa2fe5)
2024-07-11 13:23:24 +00:00
George Joseph
e5112eae8d .github: Add branches to workflow_dispatch for NightlyTests
(cherry picked from commit 12b997312b)
2024-07-11 13:23:24 +00:00
George Joseph
df6501c8c3 .github: Add PAT to PRSubmitActions/Add Reviewers
(cherry picked from commit a02a929d27)
2024-05-09 13:48:09 +00:00
George Joseph
0fe641503a .github: Remove timeout-minutes from gatetests
(cherry picked from commit 94176ecb88)
2024-03-07 14:18:41 +00:00
George Joseph
ddc6cc5465 .github: Pass only single GATETEST_COMMAND to AsteriskGateComposite
(cherry picked from commit d58ca20247)
2024-03-07 14:18:41 +00:00
George Joseph
1daec58db8 .github: Add force_cherry_pick option to Releaser
(cherry picked from commit 2d1a4bab25)
2024-03-07 14:18:41 +00:00
George Joseph
53931fac06 .github: Remove start_version from Releaser
(cherry picked from commit 4077b4b340)
2024-03-07 14:18:41 +00:00
George Joseph
5c12fda94e .github: Update github-script to v7 and fix a rest bug
Need to update the github-script to v7 to squash deprecation
warnings.

Also fixed the API name for github.rest.pulls.requestReviewers.

(cherry picked from commit 9baf49497e)
2024-03-07 14:18:40 +00:00
George Joseph
0fd8f9ca88 MergeApproved.yml: Remove unneeded concurrency
The concurrency parameter on the MergeAndCherryPick job has
been rmeoved.  It was a hold-over from earlier days.

(cherry picked from commit 751f8649fd)
2024-01-12 18:32:13 +00:00
George Joseph
56d568d1d5 .github: PRSubmitActions: Fix adding reviewers to PR
(cherry picked from commit 79c5845141)
2024-01-12 18:32:12 +00:00
George Joseph
b404679de0 .github: New PR Submit workflows
The workflows that get triggered when PRs are submitted or updated
have been replaced with ones that are more secure and have
a higher level of parallelism.

(cherry picked from commit 6389654b21)
2024-01-12 18:32:12 +00:00
George Joseph
b01a9f59b5 .github: New PR Submit workflows
The workflows that get triggered when PRs are submitted or updated
have been replaced with ones that are more secure and have
a higher level of parallelism.

(cherry picked from commit d06bb7f2fe)
2024-01-12 18:32:12 +00:00
George Joseph
6a60ce8eae .github: Fix job prereqs in PROpenedUpdated
(cherry picked from commit 9e9037a8aa)
2024-01-12 18:32:12 +00:00
George Joseph
f3561210c2 .github: Block PR tests until approved
(cherry picked from commit 29e202085d)
2024-01-12 18:32:12 +00:00
George Joseph
a2d71fce2a .github: Use generic releaser
(cherry picked from commit ceddfbe7b8)
2024-01-12 18:32:12 +00:00
George Joseph
bbbc9a8540 ari-stubs: Fix more local anchor references
Also allow CreateDocs job to be run manually with default branches.

(cherry picked from commit c457784bd0)
2023-09-06 18:21:31 +00:00
George Joseph
a0fc6c3ab0 ari-stubs: Fix more local anchor references
Also allow CreateDocs job to be run manually with default branches.

(cherry picked from commit b68006f3a1)
2023-09-06 18:21:31 +00:00
George Joseph
4b11eb23c8 .github: Update workflow-application-token-action to v2
(cherry picked from commit 83964ede1f)
2023-09-06 18:21:31 +00:00
George Joseph
d0e5f2f6be .github: Fix cherry-pick reminder issues 2023-07-17 09:23:08 -06:00
George Joseph
016ff87349 .github: Minor tweak to Asterisk Releaser 2023-07-12 06:39:58 -06:00
George Joseph
6a4f2a7cf7 .github: Suppress cherry-pick reminder for some situations
In PROpenedOrUpdated, the cherry-pick reminder will now be
suppressed if there are already valid 'cherry-pick-to' comments
in the PR or the PR contained a 'cherry-pick-to: none' comment.
2023-07-11 06:31:04 -06:00
George Joseph
a4e21eeb5c .github: Update AsteriskReleaser for security releases 2023-07-07 11:06:24 -06:00
George Joseph
b2cdb530dd .github: Updates for AsteriskReleaser 2023-06-30 07:01:40 -06:00
George Joseph
1f435d8c55 .github: Back out triggering PROpenedOrUpdated by label 2023-06-29 09:06:41 -06:00
George Joseph
32fd0fb1e0 .github: Move publish docs to new file CreateDocs.yml 2023-06-27 10:21:47 -06:00
George Joseph
f0ca38901e .github: Remove result check from PROpenUpdateGateTests 2023-06-27 05:17:45 -06:00
George Joseph
8bf917852c .github: Fix use of 'contains' 2023-06-26 08:45:16 -06:00
George Joseph
10876b2bfc .github: Add recheck label test to additional jobs 2023-06-26 07:46:03 -06:00
George Joseph
76bb010ef7 .github: Fix recheck label typos 2023-06-26 07:21:53 -06:00