-
Notifications
You must be signed in to change notification settings - Fork 15
chore(ci): run release please before other jobs #1846
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,12 +15,32 @@ concurrency: | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
|
||
| jobs: | ||
| release-please: | ||
| name: Release Please | ||
| runs-on: ubuntu-latest | ||
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - id: release | ||
| uses: googleapis/release-please-action@v4 | ||
| outputs: | ||
| releases_created: ${{ steps.release.outputs.releases_created || 'false' }} | ||
| tag_name: ${{ steps.release.outputs.tag_name || '' }} | ||
|
|
||
| test-api: | ||
| name: Test API | ||
| defaults: | ||
| run: | ||
| working-directory: api | ||
| runs-on: ubuntu-latest | ||
| needs: release-please | ||
| steps: | ||
|
Comment on lines
40
to
44
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The new Useful? React with 👍 / 👎. |
||
| - name: Checkout repo | ||
| uses: actions/checkout@v6 | ||
|
|
@@ -164,29 +184,6 @@ jobs: | |
| VITE_CALLBACK_KEY: ${{ secrets.VITE_CALLBACK_KEY }} | ||
| UNRAID_BOT_GITHUB_ADMIN_TOKEN: ${{ secrets.UNRAID_BOT_GITHUB_ADMIN_TOKEN }} | ||
|
|
||
| release-please: | ||
| name: Release Please | ||
| runs-on: ubuntu-latest | ||
| # Only run on pushes to main AND after tests pass | ||
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
| needs: | ||
| - test-api | ||
| - build-artifacts | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - id: release | ||
| uses: googleapis/release-please-action@v4 | ||
| outputs: | ||
| releases_created: ${{ steps.release.outputs.releases_created || 'false' }} | ||
| tag_name: ${{ steps.release.outputs.tag_name || '' }} | ||
|
|
||
| build-plugin-staging-pr: | ||
| name: Build and Deploy Plugin | ||
| needs: | ||
|
|
||
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.
should we gate
build-artifactsas well, or will only blocking one of them suffice? if it's a one or the other situation, i'd recommend blocking build-artifacts since the test run takes much longer.