Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict trigger for ARM to PRs containing labels only #2343

Merged
merged 4 commits into from
Feb 5, 2023

Conversation

JimBobSquarePants
Copy link
Member

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

Trying to keep the ARM build runner checks to a minimum to reduce costs.

Following a combination of the following instructions

https://stackoverflow.com/questions/62325286/run-github-actions-when-pull-requests-have-a-specific-label#comment122159108_62331521

https://github.com/orgs/community/discussions/26253#discussioncomment-3250989

@JimBobSquarePants
Copy link
Member Author

First run with condition excludes ARM matrix entries.

Now adding labels to ensure they are captured.

@JimBobSquarePants
Copy link
Member Author

@brianpopow It works!!

@JimBobSquarePants JimBobSquarePants changed the title Attempt to restrict trigger for ARM to labels. Restrict trigger for ARM to PRs containing labels only Feb 5, 2023
@JimBobSquarePants JimBobSquarePants merged commit 4d77c68 into main Feb 5, 2023
@JimBobSquarePants JimBobSquarePants deleted the js/arm-triggers branch February 5, 2023 11:11
@@ -58,6 +61,10 @@ jobs:
sdk: 6.0.x
runtime: -x64
codecov: false
exclude:
- isARM: false
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JimBobSquarePants: I am not sure that I understand the intention of the exclude here, does that mean only the arm runners should be executed and all others should not run?

Copy link
Member Author

@JimBobSquarePants JimBobSquarePants Feb 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exclude the ARM runners unless the label exists.

I thought best to run the other runners at all times which helps us avoid any errors we potentially introduce with conditionals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants