Skip to content

breaking(integration_test_charm.yaml): Run arm64 tests on all events … #123

breaking(integration_test_charm.yaml): Run arm64 tests on all events …

breaking(integration_test_charm.yaml): Run arm64 tests on all events … #123

Workflow file for this run

# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.
name: Release workflows
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check semantic version prefix for latest commit
run: python3 _check_semantic_version_prefix.py
env:
# Use env variable to avoid script injection
MESSAGE: ${{ github.event.head_commit.message }}
- name: Get release version
id: get-version
run: python3 _get_release_semantic_version.py
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update major version tag
run: |
git tag '${{ steps.get-version.outputs.major_version }}' --force
git push origin '${{ steps.get-version.outputs.major_version }}' --force
- name: Create release
run: |
git tag '${{ steps.get-version.outputs.full_version }}'
git push origin '${{ steps.get-version.outputs.full_version }}'
gh release create '${{ steps.get-version.outputs.full_version }}' --verify-tag --generate-notes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write # Needed to create release