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

Trigger build docs only on upstream/main with build-docs label #87

Conversation

smokestacklightnin
Copy link
Contributor

📝 Description

Type: 🪲 📝 documentation | 🎢 infrastructure

This commit implements the functionality that the docs will only be built on upstream in the main branch and when the build-docs label is applied. Outside of the upstream repo, building is unrestricted.

🚦 Testing

How did you test these changes?

  • Testing pipeline
  • Triggers on my fork

☑️ Checklist

  • I requested two reviewers for this pull request
  • I updated the documentation according to my changes
  • I built the documentation by applying the build_docs label

Note: If you are not allowed to perform any of these actions, ping (@) a contributor.

@smokestacklightnin smokestacklightnin marked this pull request as draft July 12, 2023 03:28
@smokestacklightnin smokestacklightnin added the documentation Improvements or additions to documentation label Jul 12, 2023
@@ -11,6 +12,10 @@ defaults:
shell: bash -le {0}
jobs:
build-sphinx-html:
if: ((github.repository == 'tardis-sn/stardis') && (${{ github.head_ref || github.ref_name}} == 'main') && (contains(github.event.pull_request.labels.*.name, 'build-docs') || && contains(github.event.pull_request.labels.*.name, 'documentation'))) || (github.repository_owner != 'tardis-sn')
Copy link
Contributor

Choose a reason for hiding this comment

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

@epassaro Do you have an opinion on this implementation?

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

Successfully merging this pull request may close these issues.

2 participants