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

Update action internals and bump major #1

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

rathpc
Copy link
Contributor

@rathpc rathpc commented Aug 22, 2023

This includes:

  • Updating dependencies to latest
  • Update package-lock.json to latest version
  • Resolve lint issues as a result of updating deps
  • Update action to run using node16
  • Bump version to 2.0.0

@rathpc
Copy link
Contributor Author

rathpc commented Aug 22, 2023

@dcoraboeuf when you have a chance this updates the action to use newer deps etc.

@dcoraboeuf
Copy link
Contributor

There seems to be an issue with the build, I'll check tomorrow morning my time since I am on my mobile phone and this is not so practical to check things...

Thanks already for your contribution!

@rathpc
Copy link
Contributor Author

rathpc commented Aug 22, 2023

There seems to be an issue with the build, I'll check tomorrow morning my time since I am on my mobile phone and this is not so practical to check things...

Thanks already for your contribution!

Ontrack cli setup step has an issue here https://github.com/nemerosa/ontrack-github-actions-cli-validation/pull/1/checks#step:4:9 and as a result does not output a branch to use in subsequent steps. There may be other issues but I would start there.

@dcoraboeuf
Copy link
Contributor

I've fixed the support for PRs in the setup action and updated the CLI version in the main branch. I've also created a v2.0.1 for this purpose.

Can you rebase or merge your PR head branch from the main branch?

@rathpc rathpc force-pushed the rathpc/update-deps branch from f48f2ed to fd60f9f Compare August 23, 2023 12:49
@rathpc
Copy link
Contributor Author

rathpc commented Aug 23, 2023

I've fixed the support for PRs in the setup action and updated the CLI version in the main branch. I've also created a v2.0.1 for this purpose.

Can you rebase or merge your PR head branch from the main branch?

Updated just now

@rathpc
Copy link
Contributor Author

rathpc commented Aug 28, 2023

@dcoraboeuf just bumping this up. I also left a comment on the other action PR regarding versions in case you had missed it.

@dcoraboeuf
Copy link
Contributor

Version issue is now fixed.

@dcoraboeuf
Copy link
Contributor

The build now fails with:

Error: No current configuration

Having a look.

@dcoraboeuf
Copy link
Contributor

After some back and forths, it all comes down to the fact that secrets are not passed for PR coming for forks: https://docs.github.com/en/actions/security-guides/encrypted-secrets#using-encrypted-secrets-in-a-workflow

With the exception of GITHUB_TOKEN, secrets are not passed to the runner when a workflow is triggered from a forked repository.

I therefore need to disable all the ontrack cli tests in the workflow when we run for a PR coming from a fork. I'll do that later (work is calling) unless you can do that directky in your PR?

This includes:
- Updating dependencies to latest
- Update package-lock.json to latest version
- Resolve lint issues as a result of updating deps
- Update action to run using node16
- Bump version to 2.0.0
@rathpc rathpc force-pushed the rathpc/update-deps branch from fd60f9f to f0166c4 Compare December 22, 2023 20:34
@rathpc
Copy link
Contributor Author

rathpc commented Dec 22, 2023

Hey @dcoraboeuf I am bringing this back to life with a small change that skips the ontrack-cli steps if running on a fork

@rathpc
Copy link
Contributor Author

rathpc commented Jan 2, 2024

@dcoraboeuf Happy new year! just giving this a bump to make sure it doesn't get lost, thanks!

@dcoraboeuf
Copy link
Contributor

Happy new year to you as well @rathpc ! I'm having a look at it right now, sorry for the big delays :(

@dcoraboeuf dcoraboeuf merged commit fb68d45 into nemerosa:main Jan 5, 2024
1 check failed
@rathpc rathpc deleted the rathpc/update-deps branch January 16, 2024 17:21
@rathpc
Copy link
Contributor Author

rathpc commented Jan 16, 2024

@dcoraboeuf thank you! Can you trigger a release so that new tags are available? I know you had an issue doing this the first time for the other action so I just wanted to call that out in case there is something you have to change for this one to fix that here as well.

@dcoraboeuf
Copy link
Contributor

Done. Moved v1, created v1.1 and v1.10.

I seriously need to revisit the release process of these actions!

@rathpc
Copy link
Contributor Author

rathpc commented Jan 16, 2024

Done. Moved v1, created v1.1 and v1.10.

I seriously need to revisit the release process of these actions!

It should be v2, v2.0 and v2.0.0, not v1 to align with the tags in https://github.com/nemerosa/ontrack-github-actions-cli-setup

@dcoraboeuf
Copy link
Contributor

dcoraboeuf commented Jan 17, 2024 via email

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

Successfully merging this pull request may close these issues.

2 participants