Check unit's host for restart need (#1366) #879
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
| # Copyright 2023 Canonical Ltd. | |
| # See LICENSE file for licensing details. | |
| name: Release to Charmhub | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - 'tests/**' | |
| - 'docs/**' | |
| - .github/renovate.json5 | |
| - pyproject.toml | |
| - '.github/workflows/ci.yaml' | |
| - '.github/workflows/lib-check.yaml' | |
| - '.github/workflows/sync_docs.yaml' | |
| jobs: | |
| ci-tests: | |
| name: Tests | |
| uses: ./.github/workflows/ci.yaml | |
| secrets: inherit | |
| permissions: | |
| contents: write # Needed for Allure Report | |
| release-libraries: | |
| name: Release libraries | |
| needs: | |
| - ci-tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| permissions: {} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Release charm libraries | |
| uses: canonical/charming-actions/release-libraries@2.7.0 | |
| with: | |
| credentials: "${{ secrets.CHARMHUB_TOKEN }}" | |
| github-token: "${{ secrets.GITHUB_TOKEN }}" | |
| release: | |
| name: Release charm | |
| needs: | |
| - ci-tests | |
| uses: canonical/data-platform-workflows/.github/workflows/release_charm_edge.yaml@v42.0.1 | |
| with: | |
| track: 14 | |
| artifact-prefix: ${{ needs.ci-tests.outputs.artifact-prefix }} | |
| secrets: | |
| charmhub-token: ${{ secrets.CHARMHUB_TOKEN }} | |
| permissions: | |
| contents: write # Needed to create git tags |