Skip to content

Update Github workflows (#291) #6

Update Github workflows (#291)

Update Github workflows (#291) #6

name: Release to 5/edge
on:
push:
branches:
- 5/edge
jobs:
ci-tests:
uses: ./.github/workflows/ci.yaml
secrets:
CHARMHUB_TOKEN: "${{ secrets.CHARMHUB_TOKEN }}"
AWS_ACCESS_KEY: "${{ secrets.AWS_ACCESS_KEY }}"
AWS_SECRET_KEY: "${{ secrets.AWS_SECRET_KEY }}"
GCP_ACCESS_KEY: "${{ secrets.GCP_ACCESS_KEY }}"
GCP_SECRET_KEY: "${{ secrets.GCP_SECRET_KEY }}"
build:
name: Build charm
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
with:
charmcraft-snap-channel: "latest/edge"
release-charm:
name: Release charm
needs:
- ci-tests
- build
uses: canonical/data-platform-workflows/.github/workflows/release_charm.yaml@v5
with:
channel: 5/edge
artifact-name: ${{ needs.build.outputs.artifact-name }}
secrets:
charmhub-token: ${{ secrets.CHARMHUB_TOKEN }}
permissions:
contents: write # Needed to create GitHub release
release-libraries:
name: Release libraries

Check failure on line 39 in .github/workflows/release_5_edge.yaml

View workflow run for this annotation

GitHub Actions / Release to 5/edge

Invalid workflow file

The workflow is not valid. .github/workflows/release_5_edge.yaml (Line: 39, Col: 5): Required property is missing: runs-on

Check failure on line 39 in .github/workflows/release_5_edge.yaml

View workflow run for this annotation

GitHub Actions / Release to 5/edge

Invalid workflow file

The workflow is not valid. .github/workflows/release_5_edge.yaml (Line: 39, Col: 5): Required property is missing: runs-on
needs:
- ci-tests
- release-charm
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Release any bumped charm libs
uses: canonical/charming-actions/[email protected]
with:
credentials: "${{ secrets.CHARMHUB_TOKEN }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"