From e0f68da8c14618707eb922cadcb8f52271f31a92 Mon Sep 17 00:00:00 2001 From: Bartlomiej Gmerek Date: Mon, 4 Nov 2024 12:58:30 +0100 Subject: [PATCH] Disables CI for 1.4 branch --- .github/dependabot.yml | 30 ------------ .github/workflows/1_4_scheduled_runs.yaml | 59 ----------------------- .github/workflows/dependabot_pr.yaml | 1 - 3 files changed, 90 deletions(-) delete mode 100644 .github/workflows/1_4_scheduled_runs.yaml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b5e6bfb4..6c0049fd 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -20,33 +20,3 @@ updates: interval: "daily" commit-message: prefix: "chore: " - - - package-ecosystem: "github-actions" - target-branch: v1.4 - directory: "/" - schedule: - interval: "weekly" - commit-message: - prefix: "chore: " - labels: - - v1.4 - - - package-ecosystem: "pip" - target-branch: v1.4 - directory: "/" - schedule: - interval: "weekly" - commit-message: - prefix: "chore: " - labels: - - v1.4 - - - package-ecosystem: "terraform" - target-branch: v1.4 - directory: "/terraform/" - schedule: - interval: "weekly" - commit-message: - prefix: "chore: " - labels: - - v1.4 diff --git a/.github/workflows/1_4_scheduled_runs.yaml b/.github/workflows/1_4_scheduled_runs.yaml deleted file mode 100644 index 368fc932..00000000 --- a/.github/workflows/1_4_scheduled_runs.yaml +++ /dev/null @@ -1,59 +0,0 @@ -name: Release 1.4 - -on: - schedule: - - cron: '0 2 * * *' - -jobs: - codeql: - uses: canonical/sdcore-github-workflows/.github/workflows/codeql-analysis.yml@v0.0.1 - with: - branch-name: "v1.4" - - lint-report: - uses: canonical/sdcore-github-workflows/.github/workflows/lint-report.yaml@v0.0.1 - with: - branch-name: "v1.4" - - static-analysis: - uses: canonical/sdcore-github-workflows/.github/workflows/static-analysis.yaml@v0.0.1 - with: - branch-name: "v1.4" - - integration-test: - uses: ./.github/workflows/integration-tests.yaml - with: - branch-name: "v1.4" - secrets: inherit - - create-issue: - runs-on: ubuntu-latest - if: ${{ always() && github.ref_name == 'main' && 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.4 - 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/create-issue-action@v2.0.0 - with: - token: ${{ github.token }} - title: "[sdcore-tests] Release 1.4 - 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/issues.yaml@v0.0.1 - secrets: inherit diff --git a/.github/workflows/dependabot_pr.yaml b/.github/workflows/dependabot_pr.yaml index 9e459bd3..0416ea1d 100644 --- a/.github/workflows/dependabot_pr.yaml +++ b/.github/workflows/dependabot_pr.yaml @@ -4,7 +4,6 @@ on: pull_request: branches: - main - - v1.4 permissions: pull-requests: write