fix: workflow fixes

This commit is contained in:
Daniel Hougaard
2024-11-12 20:47:10 +04:00
parent ea3d164ead
commit 4cd8e0fa67
@@ -1,20 +1,16 @@
name: Build and release CLI name: Build and release CLI
on: on:
pull_request:
types: [opened, synchronize]
workflow_dispatch: workflow_dispatch:
# push: push:
# run only against tags # run only against tags
# tags: tags:
# - "infisical-cli/v*.*.*" - "infisical-cli/v*.*.*"
permissions: permissions:
contents: write contents: write
# packages: write
# issues: write
jobs: jobs:
cli-integration-tests: cli-integration-tests:
name: Run tests before deployment name: Run tests before deployment
@@ -33,20 +29,19 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
env: env:
working-directory: ./npm working-directory: ./npm
CLI_VERSION: 1.1.1 needs:
# needs: - cli-integration-tests
# - cli-integration-tests - goreleaser
# - goreleaser
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
# - name: Extract version - name: Extract version
# run: | run: |
# VERSION=$(echo ${{ github.ref_name }} | sed 's/infisical-cli\/v//') VERSION=$(echo ${{ github.ref_name }} | sed 's/infisical-cli\/v//')
# echo "Version extracted: $VERSION" echo "Version extracted: $VERSION"
# echo "CLI_VERSION=$VERSION" >> $GITHUB_ENV echo "CLI_VERSION=$VERSION" >> $GITHUB_ENV
- name: Print version - name: Print version
run: echo ${{ env.CLI_VERSION }} run: echo ${{ env.CLI_VERSION }}