diff --git a/.github/workflows/bench.yaml b/.github/workflows/bench.yaml index 1749010..f54f19e 100644 --- a/.github/workflows/bench.yaml +++ b/.github/workflows/bench.yaml @@ -4,6 +4,8 @@ on: create: tags: - 'v*' + repository_dispatch: + types: [wf-bench] jobs: bench: @@ -13,7 +15,9 @@ jobs: - name: Get version id: version shell: bash - run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} + run: | + v=${GITHUB_REF#refs/tags/v} + echo ::set-output name=VERSION::${v:-0.0.0} - name: Set up Node.js uses: actions/setup-node@master with: diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 5a79ac3..dcfc462 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -4,6 +4,8 @@ on: create: tags: - 'v*' + repository_dispatch: + types: [wf-cli] jobs: cli: @@ -29,7 +31,9 @@ jobs: - name: Get version id: version shell: bash - run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} + run: | + v=${GITHUB_REF#refs/tags/v} + echo ::set-output name=VERSION::${v:-0.0.0} - name: Get file name id: file shell: bash diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index 2b3f9d8..ab380a3 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -4,6 +4,8 @@ on: create: tags: - 'v*' + repository_dispatch: + types: [wf-java] jobs: build: diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 7267bb7..742371d 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -4,6 +4,8 @@ on: create: tags: - 'v*' + repository_dispatch: + types: [wf-nodejs] jobs: build: @@ -25,7 +27,9 @@ jobs: - name: Get version id: version shell: bash - run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} + run: | + v=${GITHUB_REF#refs/tags/v} + echo ::set-output name=VERSION::${v:-0.0.0} - name: Set up Node.js uses: actions/setup-node@master with: @@ -62,7 +66,9 @@ jobs: - name: Get version id: version shell: bash - run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} + run: | + v=${GITHUB_REF#refs/tags/v} + echo ::set-output name=VERSION::${v:-0.0.0} - name: Set up Node.js uses: actions/setup-node@master with: diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index ee878a9..0309f38 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -4,6 +4,8 @@ on: create: tags: - 'v*' + repository_dispatch: + types: [wf-python] jobs: build: @@ -30,7 +32,9 @@ jobs: - name: Get version id: version shell: bash - run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} + run: | + v=${GITHUB_REF#refs/tags/v} + echo ::set-output name=VERSION::${v:-0.0.0} - name: Get native module file name id: native_file shell: bash @@ -74,7 +78,9 @@ jobs: - name: Get version id: version shell: bash - run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} + run: | + v=${GITHUB_REF#refs/tags/v} + echo ::set-output name=VERSION::${v:-0.0.0} - name: Set up Python uses: actions/setup-python@v1 with: diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 4c6795b..5fe2aa6 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -4,6 +4,8 @@ on: create: tags: - 'v*' + repository_dispatch: + types: [wf-ruby] jobs: build: @@ -24,7 +26,9 @@ jobs: - name: Get version id: version shell: bash - run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} + run: | + v=${GITHUB_REF#refs/tags/v} + echo ::set-output name=VERSION::${v:-0.0.0} # Install Ruby manually as actions/setup-ruby@v1 does not compile with `--enable-shared`. - name: Prepare for rbenv run: | @@ -91,7 +95,9 @@ jobs: - name: Get version id: version shell: bash - run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} + run: | + v=${GITHUB_REF#refs/tags/v} + echo ::set-output name=VERSION::${v:-0.0.0} - name: Set up Ruby uses: actions/setup-ruby@v1 with: