Skip to content

Commit

Permalink
Update release-cli.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaangiolillo committed Apr 25, 2024
1 parent 265c940 commit dc9428a
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/release-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,12 @@ on:
default: 'false'

jobs:
release-config:
runs-on: ubuntu-latest
outputs:
creates_new_tag: ${{ steps.evaluate_inputs.outputs.creates_new_tag }}
runs_tests: ${{ steps.evaluate_inputs.outputs.runs_tests }}
steps:
- id: evaluate_inputs
run: |
{
echo "creates_new_tag=$(if [ '${{ inputs.use_existing_tag }}' = 'true' ]; then echo 'false'; else echo 'true'; fi)"
echo "runs_tests=$(if [ '${{ inputs.skip_tests }}' = 'true' ]; then echo 'false'; else echo 'true'; fi)"
} >> "$GITHUB_OUTPUT"
create-tag:

Check failure on line 19 in .github/workflows/release-cli.yml

View workflow job for this annotation

GitHub Actions / lint

job "create-tag" needs job "release-config" which does not exist in this workflow
runs-on: ubuntu-latest
needs: [ release-config ]
if: >-
!cancelled()
&& !contains(needs.*.result, 'failure')
&& needs.release-config.outputs.creates_new_tag == 'true'
&& inputs.use_existing_tag == 'false'
steps:
- name: Validation of version format
run: |
Expand Down Expand Up @@ -63,11 +49,11 @@ jobs:
body: See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}

run-tests:
needs: [ release-config, create-tag ]
needs: [ create-tag ]
if: >-
!cancelled()
&& !contains(needs.*.result, 'failure')
&& needs.release-config.outputs.runs_tests == 'true'
&& inputs.skip_tests == 'false'
secrets: inherit
uses: ./.github/workflows/code-health-tools.yml

Expand Down

0 comments on commit dc9428a

Please sign in to comment.