Creates v1.5 release branch #2073
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release 1.5 CI | |
on: | |
push: | |
pull_request: | |
branches: | |
- v1.5 | |
jobs: | |
codeql: | |
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected] | |
lint-report: | |
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected] | |
static-analysis: | |
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected] | |
integration-test: | |
uses: ./.github/workflows/integration-tests.yaml | |
secrets: inherit | |
create-issue: | |
runs-on: ubuntu-latest | |
if: ${{ always() && github.ref_name == 'v1.5' && contains(join(needs.*.result, ','), 'failure') }} | |
needs: [ lint-report, static-analysis, integration-test ] | |
steps: | |
- name: Check whether the issue already exists | |
id: check-issue | |
continue-on-error: true | |
run: | | |
if curl -L -H "Authorization: Bearer ${{ github.token }}" https://api.github.com/repos/$GITHUB_REPOSITORY/issues | grep "Release 1.5 - CI run failed"; then | |
echo ISSUE_EXISTS="True" >> $GITHUB_OUTPUT | |
else | |
echo ISSUE_EXISTS="False" >> $GITHUB_OUTPUT | |
fi | |
- name: Create issue | |
id: create-issue | |
if: steps.check-issue.outputs.ISSUE_EXISTS == 'False' | |
uses: dacbd/[email protected] | |
with: | |
token: ${{ github.token }} | |
title: "[sdcore-tests] Release 1.5 - CI run failed" | |
body: | | |
### Context | |
[Failed Run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) | |
[Codebase](https://github.com/${{ github.repository }}/tree/${{ github.sha }}) | |
sync-issues: | |
if: always() | |
needs: [ create-issue ] | |
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected] | |
secrets: inherit |