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

[WORKFLOW] CD Release Draft workflow cleanup #1915

Merged
merged 1 commit into from
Mar 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions .github/workflows/cd.packages-stable.create-release-drafts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,32 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPMJS_TOKEN: ${{ secrets.NPMJS_TOKEN }}

check-sdk-core-version:
name: Checking if SDK-Core should be published

runs-on: ubuntu-latest

outputs:
publish_sdk_core: ${{ env.SHOULD_PUBLISH_SDK_CORE }}

steps:
- uses: actions/checkout@v3

- name: Check package versions
run: ./tasks/check-package-version.sh sdk-core SHOULD_PUBLISH_SDK_CORE SDK_CORE_NEW_VERSION >> "$GITHUB_ENV"

test-sdk-core-query-schema-against-deployed-v1-subgraphs:
uses: ./.github/workflows/call.check-query-schema-against-subgraph.yml
needs: check-sdk-core-version
if: needs.check-sdk-core-version.outputs.publish_sdk_core == 1
name: Test SDK-Core Query Schema and Queries Against Deployed V1 Subgraphs
with:
subgraph-release: v1

test-sdk-core-with-v1-release-subgraph:
uses: ./.github/workflows/call.test-sdk-core.yml
needs: check-sdk-core-version
if: needs.check-sdk-core-version.outputs.publish_sdk_core == 1
name: Build and Test SDK-Core (Release branch)
with:
subgraph-release: v1
Expand All @@ -144,6 +162,7 @@ jobs:

needs:
[
check-sdk-core-version,
test-sdk-core-query-schema-against-deployed-v1-subgraphs,
test-sdk-core-with-v1-release-subgraph,
]
Expand All @@ -159,11 +178,8 @@ jobs:
node-version: 18.x
registry-url: https://registry.npmjs.org/

- name: Check package versions
run: ./tasks/check-package-version.sh sdk-core SHOULD_PUBLISH_SDK_CORE SDK_CORE_NEW_VERSION >> "$GITHUB_ENV"

- name: Create sdk-core stable release draft
if: env.SHOULD_PUBLISH_SDK_CORE == 1
if: needs.check-sdk-core-version.outputs.publish_sdk_core == 1
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
Expand Down
Loading