diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f1293e..5a90d25 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -70,7 +70,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ORG_GITHUB_TOKEN: ${{ secrets.ORG_GITHUB_TOKEN }} - name: Report Release To OpsLevel - uses: opslevel/report-deploy-github-action@v1.0.0 + uses: opslevel/report-deploy-github-action@v2.0.0 with: integration_url: ${{ secrets.DEPLOY_INTEGRATION_URL }} service: "report_deploy_github_action" diff --git a/action.yml b/action.yml index b2813fb..af2e517 100644 --- a/action.yml +++ b/action.yml @@ -47,9 +47,15 @@ inputs: runs: using: "composite" steps: + - name: Mask inputs + shell: bash + run: | + set +v + echo ::add-mask::${{ inputs.integration_url }} + set -v - name: Do it with Docker if: ${{ inputs.use_docker == 'true' }} - uses: OpsLevel/report-deploy-github-action/with-docker@v1.0.0 + uses: OpsLevel/report-deploy-github-action/with-docker@v2.0.0 with: integration_url: ${{ inputs.integration_url }} deduplication_id: ${{ inputs.deduplication_id }} @@ -60,16 +66,13 @@ runs: environment: ${{ inputs.environment }} number: ${{ inputs.number }} service: ${{ inputs.service }} - - name: Install OpsLevel cli + - name: Install OpsLevel CLI if: ${{ inputs.use_docker != 'true' }} - shell: bash - run: | - curl -sLS https://raw.githubusercontent.com/OpsLevel/cli/main/install.sh | sudo sh + uses: opslevel/actions/setup-cli@v1 - name: Report Deploy to OpsLevel if: ${{ inputs.use_docker != 'true' }} shell: bash run: | - echo ::add-mask::$INTEGRATION_URL cat < data.yaml service: "${{ inputs.service }}" description: "${{ inputs.description }}" @@ -81,6 +84,4 @@ runs: name: "${{ inputs.deployer_name }}" email: "${{ inputs.deployer_email }}" EOF - opslevel create deploy -i "${INTEGRATION_URL}" -f . - env: - INTEGRATION_URL: ${{ inputs.integration_url }} + opslevel create deploy -i "${{ inputs.integration_url }}" -f .