Closed ai closed 1 year ago
I create env by
- name: Notify about new deployment uses: bobheadxi/deployments@v1 id: deployment with: step: start token: ${{ secrets.GITHUB_TOKEN }} ref: ${{ github.head_ref }} env: preview-${{ github.event.number }}
Then I delete it by:
- name: Clean from GitHub uses: bobheadxi/deployments@v1 with: step: delete-env token: ${{ secrets.GITHUB_TOKEN }} env: preview-${{ github.event.number }}
But delete-env does not really delete env and only mark it as inactive.
delete-env
inactive
Here is a log from GitHub Actions:
Run bobheadxi/deployments@v1 with: step: delete-env token: *** env: preview-479 debug: false auto_inactive: false targeting ***/browsersl.ist preview-479: found 1 existing deployments for env preview-479.642582676: setting deployment (b04ae51d657ee0d1f192d7ae2659b791cbacc38b) state to "inactive" preview-479: 1 deployments updated preview-479.642582676: deleting deployment (b04ae51d657ee0d1f192d7ae2659b791cbacc38b)" preview-479: 1 deployments deleted
But we still have preview-479 in the Environments page in Settings:
preview-479
Here is a PR: https://github.com/bobheadxi/deployments/issues/118
I create env by
Then I delete it by:
But
delete-env
does not really delete env and only mark it asinactive
.Here is a log from GitHub Actions:
But we still have
preview-479
in the Environments page in Settings: