Python 3.11 upgrade #8
Workflow file for this run
This file contains hidden or 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
| name: 'Parent Images: Parent Image Merge' | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: [closed] | |
| permissions: | |
| id-token: write | |
| contents: write | |
| actions: read | |
| jobs: | |
| call-pi-merge-parent-image: | |
| uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/pi_merge_submodule.yml@dev | |
| if: ${{ github.event.pull_request.merged }} | |
| secrets: inherit | |
| pi-matrix: | |
| uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/pi_matrix.yml@dev | |
| if: ${{ !github.event.pull_request.merged && github.event.pull_request.head.ref == 'parent-image-updates' }} | |
| secrets: inherit | |
| with: | |
| checkout_ref: parent-image-updates | |
| repository: "${{ github.repository_owner }}/refinery-submodule-parent-images" | |
| call-dc-registry-delete: | |
| name: 'Docker: Delete Branch Images' | |
| needs: [pi-matrix] | |
| uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/dc_registry_delete.yml@dev | |
| secrets: inherit | |
| strategy: | |
| matrix: | |
| parent_image_type: ${{ fromJson(needs.pi-matrix.outputs.parent_image_type) }} | |
| with: | |
| delete_tag: ${{ github.event.pull_request.head.ref }}-${{ matrix.parent_image_type }} | |
| app_name: ${{ vars.PARENT_IMAGE_NAME}} | |
| gh-delete-submodule-branches: | |
| name: 'GitHub: Delete Submodule Branch' | |
| needs: [call-dc-registry-delete] | |
| if: ${{ !failure() }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GH_TOKEN }} | |
| - name: Delete Branch | |
| shell: bash | |
| run: git push origin --delete ${{ github.event.pull_request.head.ref }} | |
| gh-delete-app-branches: | |
| name: 'GitHub: Delete App Branch' | |
| needs: [pi-matrix, gh-delete-submodule-branches] | |
| if: ${{ !failure() }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| app: ${{ fromJson(needs.pi-matrix.outputs.app) }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: "${{ github.repository_owner }}/${{ matrix.app }}" | |
| token: ${{ secrets.GH_TOKEN }} | |
| - name: Delete Branch | |
| shell: bash | |
| run: git push origin --delete ${{ github.event.pull_request.head.ref }} |