Skip to content

Commit

Permalink
publish bundle to charmhub
Browse files Browse the repository at this point in the history
  • Loading branch information
orfeas-k committed Aug 10, 2023
1 parent 3f23716 commit 6f70824
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/release-bundle-to-charmhub.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
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
# [..]

0 comments on commit 6f70824

Please sign in to comment.