forked from resoai/TileBoard
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 948 Bytes
/
on_dispatch.yaml
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
26
27
28
29
30
31
32
33
name: addon-bump
on:
workflow_dispatch:
jobs:
addon-bump:
name: Test addon bump
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get version
id: get-version
run: |
version=`echo $(jq -r '.version' package.json)`
echo "::set-output name=version::${version}"
- name: Bump TileBoard in addon
uses: octokit/[email protected]
with:
route: POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches
owner: resoai
repo: TileBoard-addon
workflow_id: on_tileboard_release.yaml
ref: main
inputs: |
version: ${{ steps.get-version.outputs.version }}
release_url: https://github.com/resoai/TileBoard/releases/tag/v${{ steps.get-version.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.REPO_WORKFLOW_TOKEN }}