This commit is contained in:
Stephan 2022-03-18 15:53:27 +01:00
parent c0b18d2f43
commit 0835da33bd

View File

@ -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)