Skip to content

A0-3284: update to 1.1.0 #335

A0-3284: update to 1.1.0

A0-3284: update to 1.1.0 #335

---
name: PR close
on:
pull_request:
types: [closed]
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
get-featurenet-name:
name: Get FE name
runs-on: ubuntu-20.04
outputs:
name: ${{ steps.get-argocd-featurenet-app-name.outputs.name }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Get branch name and commit SHA
id: get-ref-properties
uses: Cardinal-Cryptography/github-actions/get-ref-properties@v3
- name: Get argocd featurenet app name
id: get-argocd-featurenet-app-name
shell: bash
env:
# yamllint disable-line rule:line-length
FE_NAME: ${{ format('{0}{1}', 'fe-', steps.get-ref-properties.outputs.branch-name-for-argo) }}
run: |
echo 'name=${{ env.FE_NAME }}' >> $GITHUB_OUTPUT
delete-featurenet:
if: >
github.event.action == 'closed' &&
!contains(github.event.pull_request.labels.*.name, 'state:deleted-featurenet') &&
contains(github.event.pull_request.labels.*.name, 'state:created-featurenet')
name: Delete featurenet
needs: [get-featurenet-name]
uses: ./.github/workflows/featurenet-delete.yml
with:
featurenet-name: ${{ needs.get-featurenet-name.outputs.name }}
secrets: inherit