Skip to content

patch(integration_test_charm.yaml): Capture tcpdump to debug GH artif… #152

patch(integration_test_charm.yaml): Capture tcpdump to debug GH artif…

patch(integration_test_charm.yaml): Capture tcpdump to debug GH artif… #152

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