Skip to content

Commit

Permalink
steps don't depend on one another
Browse files Browse the repository at this point in the history
  • Loading branch information
doug0102 committed Aug 11, 2023
1 parent d2a9fef commit 918b36b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/destroy-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,23 @@ jobs:
uses: azure/CLI@v1
with:
azcliversion: 2.30.0
inlineScript: |
az group delete --name ${{ env.AZURE_WEBAPP_NAME }}
inlineScript: az group delete --name ${{ env.AZURE_WEBAPP_NAME }}

secret:
name: Delete GitHub Secret
runs-on: ubuntu-latest
needs: azure
steps:
- name: GitHub Auth Login
shell: bash
run: gh auth login --with-token <<< ${{ env.ACCESS_TOKEN }}

- uses: actions/checkout@master
- name: Delete Secret
run: |
gh secret delete "${{ env.SECRET_NAME }}"
run: gh secret delete "${{ env.SECRET_NAME }}"

environment:
name: Delete GitHub Environment
runs-on: ubuntu-latest
needs: [azure, secret]
steps:
- name: Delete Environment
shell: bash
Expand Down

0 comments on commit 918b36b

Please sign in to comment.