generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 18
25 lines (22 loc) · 852 Bytes
/
sync-version.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# makes sure that all files have the required version information
# This only runs when the release-please action has labeled a release pull request
# so before it is merged, this ensures that all the files have the correct version
name: sync versions
on:
workflow_dispatch:
pull_request:
types: [opened, reopened, labeled]
permissions:
contents: write
pull-requests: write
jobs:
sync-versions:
# if: "${{ contains(github.event.pull_request.labels.*.name, 'autorelease: pending') }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Sync version with manifest and versions.json
run: node version-bump.mjs
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: sync versions"