exp
This commit is contained in:
parent
c0b18d2f43
commit
0835da33bd
14
.github/workflows/publish-release.yml
vendored
14
.github/workflows/publish-release.yml
vendored
|
@ -1,14 +1,24 @@
|
||||||
name: Publish Release
|
name: Publish Release
|
||||||
on: workflow_dispatch
|
on:
|
||||||
|
workflow_dispatch
|
||||||
|
inputs:
|
||||||
|
description: 'Version'
|
||||||
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
job:
|
job:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: startsWith(github.ref, 'refs/heads/release/') # 19 leading chars
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Validate the release
|
- name: Validate the release
|
||||||
uses: actions/github-script@v5
|
uses: actions/github-script@v5
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const script = require('./.github/workflows/publish-release.js')
|
const script = require('./.github/workflows/publish-release.js')
|
||||||
|
console.log()
|
||||||
console.log(script)
|
console.log(script)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user