-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(github): sync version to instill.tech website (#968)
Because - We want to sync the version to instill.tech website automatically. This commit - Adds Github Action workflow for this.
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# This workflow will open a PR in https://github.com/instill-ai/instill.tech | ||
# updating the doc version in the website. | ||
|
||
name: Sync release version with instill.tech website | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
update-website: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout instill.tech repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: instill-ai/instill.tech | ||
token: ${{ secrets.botGitHubToken }} | ||
- name: Modify the version in website | ||
run: | | ||
# On release triggers, GITHUB_REF_NAME is the release name (e.g. | ||
# 'v0.10.0-beta') | ||
sed -i "s/core: \".*\"/core: \"${GITHUB_REF_NAME}\"/" version.mjs | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.botGitHubToken }} | ||
commit-message: 'chore: update Instill Core version' | ||
title: 'docs(document): update Instill Core version' | ||
body: Sync version with latest Core release | ||
branch: chore/update-doc-version | ||
base: main | ||
draft: false |