-
Notifications
You must be signed in to change notification settings - Fork 487
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 workflows to use actions that don't need organization secrets #7009
Merged
jdbaldry
merged 3 commits into
main
from
jdb/2024-08-update-publish-workflows-to-avoid-org-secrets
Jan 15, 2025
Merged
Update workflows to use actions that don't need organization secrets #7009
jdbaldry
merged 3 commits into
main
from
jdb/2024-08-update-publish-workflows-to-avoid-org-secrets
Jan 15, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jdbaldry
force-pushed
the
jdb/2024-08-update-publish-workflows-to-avoid-org-secrets
branch
from
August 28, 2024 09:55
e7dc96d
to
243280e
Compare
Each repository can only have 100 organization secrets and there are now more than 100 in our organization which causes inconsitent behavior. Some repositories don't have the secrets they need assigned. These composite actions use secrets stored in Vault that are available to all repositories. - `publish-technical-documentation-next.yml` has been tested with https://github.com/grafana/writers-toolkit/blob/main/.github/workflows/publish-technical-documentation.yml. - `publish-technical-documentation-release.yml` has been tested with https://github.com/grafana/backend-enterprise/blob/gem-release-2.13/.github/workflows/publish-technical-documentation-release.yml. There is some copy-paste involved in the creation of these workflows. Please check: For `publish-technical-documentation-next.yml`: - [ ] The `on.push` `branches` and `paths` filters are correct for your repository. - [ ] The `jobs.sync.if` repository matches your repository. - [ ] The `jobs.sync.steps[1].with.website_directory` matches the directory you publish to in the website repository. For `publish-technical-documentation-release.yml`: - [ ] The `on.push` `branches`, `tags`, and `paths` filters are correct for your repository. - [ ] The `jobs.sync.if` repository matches your repository. - [ ] The `jobs.sync.steps[1].with.release_tag_regexp` regular expression matches your tags and captures major, minor, and patch versions from those tags. - [ ] The `jobs.sync.steps[1].with.release_branch_regexp` regular expression matches your release branch names and captures major and minor versions from those branch names. - [ ] The `jobs.sync.steps[1].with.release_branch_with_patch_regexp` regular expression matches your release branch names if they were to include a patch version, and that it would capture major, minor, and patch versions from those branch names. - [ ] The `jobs.sync.steps[1].with.website_directory` matches the directory you publish to in the website repository. Signed-off-by: Jack Baldry <[email protected]>
jdbaldry
force-pushed
the
jdb/2024-08-update-publish-workflows-to-avoid-org-secrets
branch
from
August 28, 2024 09:58
243280e
to
70eb2ee
Compare
jdbaldry
commented
Aug 28, 2024
dehaansa
approved these changes
Jan 14, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This matches the workflows in Alloy, so approving.
jdbaldry
deleted the
jdb/2024-08-update-publish-workflows-to-avoid-org-secrets
branch
January 15, 2025 06:45
ptodev
pushed a commit
that referenced
this pull request
Jan 29, 2025
…7009) Co-authored-by: Sam DeHaan <[email protected]>
ptodev
added a commit
that referenced
this pull request
Jan 29, 2025
…7009) (#7103) Co-authored-by: Jack Baldry <[email protected]> Co-authored-by: Sam DeHaan <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Description
Each repository can only have 100 organization secrets and there are now more than 100 in our organization which causes inconsitent behavior.
Some repositories don't have the secrets they need assigned.
These composite actions use secrets stored in Vault that are available to all repositories.
publish-technical-documentation-next.yml
has been tested with https://github.com/grafana/writers-toolkit/blob/main/.github/workflows/publish-technical-documentation.yml.publish-technical-documentation-release.yml
has been tested with https://github.com/grafana/backend-enterprise/blob/gem-release-2.13/.github/workflows/publish-technical-documentation-release.yml.Notes to the Reviewer
There is some copy-paste involved in the creation of these workflows. Please check:
For
publish-technical-documentation-next.yml
:on.push
branches
andpaths
filters are correct for your repository.jobs.sync.if
repository matches your repository.jobs.sync.steps[1].with.website_directory
matches the directory you publish to in the website repository.For
publish-technical-documentation-release.yml
:on.push
branches
,tags
, andpaths
filters are correct for your repository.jobs.sync.if
repository matches your repository.jobs.sync.steps[1].with.release_tag_regexp
regular expression matches your tags and captures major, minor, and patch versions from those tags.jobs.sync.steps[1].with.release_branch_regexp
regular expression matches your release branch names and captures major and minor versions from those branch names.jobs.sync.steps[1].with.release_branch_with_patch_regexp
regular expression matches your release branch names if they were to include a patch version, and that it would capture major, minor, and patch versions from those branch names.jobs.sync.steps[1].with.website_directory
matches the directory you publish to in the website repository.Closes https://github.com/grafana/technical-documentation/issues/968