Skip to content

ci: Publish bundle to charmhub #6

ci: Publish bundle to charmhub

ci: Publish bundle to charmhub #6

name: Publish bundle to charmhub
on:
push:
branches:
- main
- track/**
paths:
- releases/**
# only for testing purposes
pull_request:
paths:
- releases/**
jobs:
get-releases-affected:
runs-on: ubuntu-22.04
name: Get releases affected
outputs:
releases_affected: ${{ steps.get-releases-affected.outputs.RELEASES_AFFECTED_LIST }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get files changed
id: changed-files
uses: tj-actions/changed-files@v37
- name: Get releases affected
id: get-releases-affected
run: python .github/workflows/test.py ${{ steps.changed-files.outputs.all_changed_files }}
# run: bash .github/workflows/get-releases
# for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
# echo "$file was changed"
# done
# get-releases-affected:
# [..]
# run-tests-for-releases-affected:
# needs: get-releases-affected
# [..]
# publish-charm:
# needs: run-tests-for-releases-affected
# [..]