-
Notifications
You must be signed in to change notification settings - Fork 574
ci: transports ci pipeline restructed #158
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| name: Core Dependency Update | ||
|
|
||
| # Triggers when core library is tagged | ||
| on: | ||
| push: | ||
| tags: | ||
| - "core/v*" | ||
|
|
||
| # Prevent concurrent runs for the same trigger to avoid conflicts | ||
| concurrency: | ||
| group: core-dependency-update-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| update-dependency: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write # Need write access to create branches and push changes | ||
| pull-requests: write # Need to create pull requests | ||
| steps: | ||
| # Checkout with full history and tags for version management | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 # Full history needed for git tag operations | ||
| fetch-tags: true # Ensure all tags are available | ||
| token: ${{ secrets.GH_TOKEN }} # Personal token for pushing changes | ||
|
|
||
| # Set up Go environment for building and dependency management | ||
| - name: Set up Go | ||
| uses: actions/setup-go@v4 | ||
| with: | ||
| go-version: "1.24.1" | ||
|
|
||
| # Set up Node.js for running our CI scripts | ||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "18" | ||
|
|
||
| # Configure Git for automated commits | ||
| - name: Configure Git | ||
| working-directory: ci/scripts | ||
| run: node git-operations.mjs configure | ||
|
|
||
| # Extract core version and run the complete pipeline | ||
| - name: Run core dependency update pipeline | ||
| working-directory: ci/scripts | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
| run: | | ||
| # Install dependencies | ||
| npm ci | ||
|
|
||
| # Extract core version from tag | ||
| CORE_VERSION=$(node extract-version.mjs "${GITHUB_REF}" core version) | ||
| echo "📦 Extracted core version: ${CORE_VERSION}" | ||
|
|
||
| # Run the complete core dependency update pipeline | ||
| node run-pipeline.mjs core-dependency-update "${CORE_VERSION}" | ||
|
Pratham-Mishra04 marked this conversation as resolved.
|
||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.