update .github/ISSUE_TEMPLATE/bug_report.yaml (#163) #62
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
| # This file is centrally managed as a template file in https://github.com/canonical/solutions-engineering-automation | |
| # To update the file: | |
| # - Edit it in the canonical/solutions-engineering-automation repository. | |
| # - Open a PR with the changes. | |
| # - When the PR merges, the soleng-terraform bot will open a PR to the target repositories with the changes. | |
| name: Release to Edge | |
| on: | |
| push: | |
| branches: [ main ] | |
| release: | |
| types: [ published ] | |
| jobs: | |
| check: | |
| uses: ./.github/workflows/check.yaml | |
| secrets: inherit | |
| release: | |
| needs: check | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Download the tested charms | |
| uses: actions/download-artifact@v4 | |
| with: | |
| pattern: built_charms_* | |
| merge-multiple: true | |
| - name: List the names of the tested charms | |
| run: | | |
| echo "CHARM_NAMES=$(ls *.charm | paste -sd ,)" | tee -a "$GITHUB_ENV" | |
| - name: Pack and upload to charmhub | |
| uses: canonical/charming-actions/[email protected] | |
| with: | |
| credentials: "${{ secrets.CHARMHUB_TOKEN }}" | |
| github-token: "${{ secrets.GITHUB_TOKEN }}" | |
| built-charm-path: "${{ env.CHARM_NAMES }}" | |
| notify-on-release-failure: | |
| runs-on: ubuntu-latest | |
| needs: | |
| - check | |
| - release | |
| if: ${{ failure() && github.run_attempt == 1 }} | |
| steps: | |
| - name: Notify release failure | |
| uses: mattermost/action-mattermost-notify@master | |
| with: | |
| MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} | |
| TEXT: | | |
| :rotating_light: @soleng release failed in project [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) |