Commit Graph
13 Commits
Author SHA1 Message Date
JayShortway b3a600e87c Adds actionlint to lint GitHub Actions workflows (#4326) 2024-10-15 18:10:40 +02:00
Andy Boedo 781151df49 Fix trigger all tests branch (#4135)
Fix trigger all tests branch (again). 

This was a pretty obvious bug - I was using the output of the
`get-branch` step, but I never set the id of the step to that.

This setup now more closely matches the [solution laid out as a github
comment](https://github.com/CircleCI-Public/trigger-circleci-pipeline-action/issues/61#issuecomment-1662021882)
2024-07-30 13:37:30 -03:00
Andy Boedo 8a476d67a1 tests trigger: add target-branch parameter to trigger from the right branch (#4121)
Fix the `@RCGitBot please test` issue where tests would always get
triggered from the `main` branch.

This solution is based on this comment:
https://github.com/CircleCI-Public/trigger-circleci-pipeline-action/issues/61#issuecomment-1662021882

But you can also see in the code that this is indeed how the branch name
is determined, and that that [logic looks the same as the one for
`GHA_action` and
`target-slug`](https://github.com/CircleCI-Public/trigger-circleci-pipeline-action/blob/a81cd720792a6088debd7f182b552845abb86f1b/src/lib/CircleCIPipelineTrigger.ts#L66),
so it's just undocumented.

We're using a fixed version, 1.2.0, so it shouldn't just randomly break.
2024-07-29 10:03:48 -03:00
JayShortway 8d7443cf81 Fixes trigger_all_tests.yml triggering on every issue comment (#4114) 2024-07-25 12:04:54 +02:00
Toni Rico f597880794 Cleanup trigger_all_tests github workflow (#4088)
### Description
Small cleanup from comments in #4084
2024-07-22 08:58:16 +02:00
Toni RicoandAndy Boedo d9f783ba20 Fix workflow permission check logic (#4084)
### Description
This improves the permission checking logic for running github actions.
We also have it setup to only run actions by organization members, but
this acts as an additional check.

---------

Co-authored-by: Andy Boedo <andresboedo@gmail.com>
2024-07-19 10:40:58 +02:00
Andy Boedo 82e2419d05 [CI]: fix CI test trigger parameters (#4076)
fixes the parameters passed in when triggering tests from a github
comment
2024-07-19 09:51:57 +02:00
Andy Boedo f523678a5f [Ci] Fix trigger to run all tests from github actions (#4075)
Fixes the trigger #4051, which had a bad pointer to the workflow from
circleCI.
2024-07-17 12:32:45 -03:00
Andy Boedo a1850eb31b added new workflow to trigger all tests (#4051)
Follow up to #4025 

Adds a github action to trigger all tests based on a github PR comment. 

Annoyingly, this can only be [tested once the action is in the default
branch](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment-on-issues-only-or-pull-requests-only),
the docs state:

> Note: This event will only trigger a workflow run if the workflow file
is on the default branch.

(I commented on this PR like 10 times before seeing this and didn't
understand why it wouldn't fire)

This uses [CircleCI's Marketplace action for
it](https://github.com/marketplace/actions/trigger-circleci-pipeline).

I also considered [triggering via
API](https://circleci.com/docs/triggers-overview/#run-a-pipeline-using-the-api),
but that has one big disadvantage in that the branch that the action
receives is `main`, so we'd have to do extra work to get the branch
name. This takes care of that automatically.
2024-07-17 11:27:56 -03:00
aboedo 0d9a9d5e12 issue bot fixes (#702)
* updated names of swift migration and test backfill labels, removed them from exclusions in stale bot

* reversed the labels so that locking is enabled but staling isn't for swift migration
2021-08-03 15:57:46 -03:00
aboedo df710d26a9 added exemptions for swift-migration and test-backfill labels (#698) 2021-08-02 14:08:56 -03:00
tiinanguyen cb3a7df8d3 Update lock.yml to exclude specific labels (#507) 2021-05-21 10:48:59 -03:00
Tina Nguyen 2a4cb69c74 Initial configuration of bots 2021-03-08 11:42:19 -08:00