From c34cbd1cf6b5d17b37d38f9e2b9282faab511251 Mon Sep 17 00:00:00 2001 From: nepalevov <33350321+nepalevov@users.noreply.github.com> Date: Wed, 28 Feb 2024 20:18:51 +0100 Subject: [PATCH] chore: GitHub workflow update (#19) --- .github/dependabot.yml | 9 +++++++++ .github/workflows/deploy_dev.yml | 8 ++++---- .github/workflows/pr-title-check.yml | 2 +- .github/workflows/pr.yml | 10 ++++++++++ .github/workflows/pr_check_tests.yml | 16 ---------------- .github/workflows/release.yml | 9 +++------ 6 files changed, 27 insertions(+), 27 deletions(-) create mode 100644 .github/workflows/pr.yml delete mode 100644 .github/workflows/pr_check_tests.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 49d85a8..148512f 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -11,3 +11,12 @@ updates: commit-message: # Prefix all commit messages with "chore: " prefix: "chore" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + day: "wednesday" + time: "09:00" + commit-message: + # Prefix all commit messages with "chore: " + prefix: "chore" diff --git a/.github/workflows/deploy_dev.yml b/.github/workflows/deploy_dev.yml index 623b48d..b5f6002 100644 --- a/.github/workflows/deploy_dev.yml +++ b/.github/workflows/deploy_dev.yml @@ -6,11 +6,11 @@ on: jobs: gitlab-dev-deploy: if: ${{ github.event.registry_package.package_version.container_metadata.tag.name == 'development' }} - uses: epam/ai-dial-ci/.github/workflows/deploy-development.yml@1.3.1 + uses: epam/ai-dial-ci/.github/workflows/deploy-development.yml@1.6.1 with: - gitlab-project-id: '1831' - gitlab-project-ref: 'master' + gitlab-project-id: "1831" + gitlab-project-ref: "master" secrets: DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} DEPLOY_ACCESS_TOKEN: ${{ secrets.DEPLOY_ACCESS_TOKEN }} - DEPLOY_TRIGGER_TOKEN: ${{ secrets.DEPLOY_TRIGGER_TOKEN }} \ No newline at end of file + DEPLOY_TRIGGER_TOKEN: ${{ secrets.DEPLOY_TRIGGER_TOKEN }} diff --git a/.github/workflows/pr-title-check.yml b/.github/workflows/pr-title-check.yml index 8aef1e8..0200748 100644 --- a/.github/workflows/pr-title-check.yml +++ b/.github/workflows/pr-title-check.yml @@ -9,6 +9,6 @@ on: jobs: pr-title-check: - uses: epam/ai-dial-ci/.github/workflows/pr-title-check.yml@1.3.1 + uses: epam/ai-dial-ci/.github/workflows/pr-title-check.yml@1.6.1 secrets: ACTIONS_BOT_TOKEN: ${{ secrets.ACTIONS_BOT_TOKEN }} diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..8fe83ef --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,10 @@ +name: PR Workflow + +on: + pull_request: + branches: [development, release-*] + +jobs: + run_tests: + uses: epam/ai-dial-ci/.github/workflows/java_pr.yml@1.6.1 + secrets: inherit diff --git a/.github/workflows/pr_check_tests.yml b/.github/workflows/pr_check_tests.yml deleted file mode 100644 index 36d8d7f..0000000 --- a/.github/workflows/pr_check_tests.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Code checks - tests - -on: - pull_request: - branches: - - development - - release-* - -jobs: - run_tests: - uses: epam/ai-dial-ci/.github/workflows/test_gradle_docker.yml@1.3.1 - secrets: inherit - with: - bypass_checks: false - java_version: 17 - java_distribution: temurin diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 83ed389..bff66f7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,13 +1,10 @@ -name: Release version +name: Release Workflow on: push: - branches: [ development, release-* ] - -env: - IMAGE_NAME: ${{ github.repository }} + branches: [development, release-*] jobs: release: - uses: epam/ai-dial-ci/.github/workflows/publish_gradle_docker.yml@1.3.1 + uses: epam/ai-dial-ci/.github/workflows/java_release.yml@1.6.1 secrets: inherit