Skip to content

Conversation

@mbien
Copy link
Member

@mbien mbien commented Aug 14, 2024

overlooked something for #7644. I wished I could run workflows locally.

@mbien mbien added CI continuous integration changes ci:no-build [ci] disable CI pipeline labels Aug 14, 2024
@mbien mbien added this to the NB24 milestone Aug 14, 2024
Copy link
Member

@neilcsmith-net neilcsmith-net left a comment

Choose a reason for hiding this comment

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

I wished I could run workflows locally.

You should be able to run them on your own repo branch though.

@mbien
Copy link
Member Author

mbien commented Aug 15, 2024

You should be able to run them on your own repo branch though.

yeah true, I have also a dummy PR for similar reasons here mbien#1. It still is not quite the same that I have to push first.

I could have done it in this case I believe if i would have pushed this PR branch to mbien/master, then trigger it manually via actions.

I have to give this a try one day https://github.com/nektos/act

@mbien mbien merged commit 72d62a3 into apache:master Aug 15, 2024
@mbien
Copy link
Member Author

mbien commented Aug 15, 2024

works. thanks for reviewing!

btw I obviously did test this locally first, just in a slightly different environment

@neilcsmith-net
Copy link
Member

I could have done it in this case I believe if i would have pushed this PR branch to mbien/master, then trigger it manually via actions.

It doesn't have to be in master. You can choose the PR branch in the trigger UI. Although possibly this should also run on push to itself like the native workflows do anyway?

@mbien
Copy link
Member Author

mbien commented Aug 15, 2024

the reason I wrote this was to discover dependencies which would need updates. For this I typically run it locally. I don't quite see the value of triggering it automatically during PRs which modify binaries-list files - since at this point the dev already figured out what to update.

You can see on the history that i run this once a month or so. Nobody else ran it so far.

It could be run automatically weekly or something like that. But will anyone look at this?

@neilcsmith-net
Copy link
Member

I didn't mean running it when any PRs are opened - I just mean adding something like https://github.com/apache/netbeans/blob/master/.github/workflows/native-binary-build-launcher.yml#L38 so it runs every time you push a change to the workflow in your personal repo.

@mbien
Copy link
Member Author

mbien commented Aug 15, 2024

I didn't mean running it when any PRs are opened - I just mean adding something like https://github.com/apache/netbeans/blob/master/.github/workflows/native-binary-build-launcher.yml#L38 so it runs every time you push a change to the workflow in your personal repo.

oh, thats a cool trick! Going to add this next time I update it.

@neilcsmith-net
Copy link
Member

Believe me, if that wasn't in those I'd still be writing the PRs to get them in! 😄

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

Labels

ci:no-build [ci] disable CI pipeline CI continuous integration changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants