Disabled env step on publis-swagger workflow

This commit is contained in:
Alejandro Celaya 2021-12-11 11:53:18 +01:00
parent 23c1dadb4c
commit dad58b7610

View File

@ -6,9 +6,9 @@ on:
version: version:
description: The version to generate description: The version to generate
required: true required: true
push: # push:
tags: # tags:
- 'v*' # - 'v*'
jobs: jobs:
build: build:
@ -20,15 +20,13 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Determine version - from input - name: Determine version - from input
if: ${{ github.event.inputs.project != '' }}
id: determine_version id: determine_version
run: echo "::set-output name=version::$(echo ${{ github.event.inputs.project }})" run: echo "::set-output name=version::${{ github.event.inputs.project }}"
shell: bash
- name: Determine version - from env
if: ${{ github.event.inputs.project == '' }}
id: determine_version
run: echo "::set-output name=version::$(echo ${GITHUB_REF#refs/tags/})"
shell: bash shell: bash
# - name: Determine version - from env
# id: determine_version
# run: echo "::set-output name=version::${GITHUB_REF#refs/tags/}"
# shell: bash
- name: Use PHP - name: Use PHP
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
with: with: