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

Chore: Update CI #296

Merged
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
12 changes: 7 additions & 5 deletions .github/workflows/update-ref.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Update references for commits, tags, etc

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

Expand All @@ -20,29 +20,31 @@ jobs:
BASE_BRANCH: staging
FILE_PATHS: |
integration-tests/src/utils/version.ts
scripts/fetch-poky.sh
scripts/fetch-docs.sh
integration-tests/src/runTest.ts
scripts/fetch-spdx-licenses.sh
node-version: 20

steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ env.BASE_BRANCH }}

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

- name: Verify file changes
uses: tj-actions/verify-changed-files@v17
uses: tj-actions/verify-changed-files@v20
id: verify-changed-files
with:
files: ${{ env.FILE_PATHS }}

- name: Create pull request
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
add-paths: ${{ env.FILE_PATHS }}
title: Auto update references for commits, tags, etc
commit-message: Auto update references for commits, tags, etc
branch: update-ref
Expand Down