Mobilecoin Dev Clean Up #1438
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2018-2022 The MobileCoin Foundation | |
# | |
# MobileCoin Core projects - Delete development namespaces when branch is removed. | |
name: Mobilecoin Dev Clean Up | |
on: delete | |
jobs: | |
metadata: | |
if: startsWith(github.event.ref, 'feature/') | |
runs-on: mcf-dev-small-x64 | |
outputs: | |
namespace: ${{ steps.meta.outputs.namespace }} | |
steps: | |
- name: Checkout | |
uses: mobilecoinofficial/gh-actions/checkout@v0 | |
- name: Generate version metadata | |
id: meta | |
env: | |
# Use the ref name from the payload. The GITHUB_REF_NAME will always be "main" | |
DELETE_REF_NAME: ${{ github.event.ref }} | |
run: | | |
.internal-ci/util/metadata.sh | |
delete: | |
needs: | |
- metadata | |
uses: ./.github/workflows/mobilecoin-workflow-dev-reset.yaml | |
with: | |
namespace: ${{ needs.metadata.outputs.namespace }} | |
delete_namespace: true | |
secrets: inherit |