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

Feat: auto update references for docs, test #150

52 changes: 52 additions & 0 deletions .github/workflows/update-extension-version-ref.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Update required extension version

on:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *' # Run on the first day of every month

jobs:
build:

runs-on: ubuntu-latest

defaults:
run:
shell: bash

env:
DBUS_SESSION_BUS_ADDRESS: unix:path=/run/user/1001/bus
SHELL: /usr/bin/bash

strategy:
matrix:
node-version: [20]

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Update required extension version
run: bash scripts/update-extension-version.sh

- name: Verify file changes
uses: tj-actions/verify-changed-files@v17
id: verify-changed-files
with:
files: |
integration-tests/src/utils/version.ts
WilsonZiweiWang marked this conversation as resolved.
Show resolved Hide resolved

- name: Create pull request
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: peter-evans/create-pull-request@v5
with:
add-paths: |
integration-tests/src/utils/version.ts
title: Auto update required extension version
commit-message: Auto update required extension version
token: ${{ secrets.GITHUB_TOKEN }}
Loading