ci: Added workflow inputs

pull/780/head
Carlos Santos 2023-02-27 17:11:33 +01:00
parent 72cac3b49e
commit 49bdfa7930
1 changed files with 11 additions and 0 deletions

View File

@ -10,6 +10,11 @@ on:
branches:
- master
workflow_dispatch:
inputs:
commit_sha:
description: 'Commit SHA'
required: false
default: ''
jobs:
@ -18,6 +23,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.commit_sha || github.sha }}
- uses: actions/setup-node@v3
with:
node-version: '16'
@ -52,6 +59,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.commit_sha || github.sha }}
- uses: actions/setup-node@v3
with:
node-version: '16'
@ -85,6 +94,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.commit_sha || github.sha }}
- uses: actions/setup-node@v3
with:
node-version: '16'