Skip to content

Commit

Permalink
add tasks to tools
Browse files Browse the repository at this point in the history
  • Loading branch information
leiicamundi committed Mar 3, 2025
1 parent 2bc9995 commit f8a4929
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/internal_global_sync_main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
name: Internal - Global - Sync Main branch from latest Camunda stable version

env:
CURRENT_STABLE_BRANCH: camunda-8.7

on:
push:
branches:
- camunda-8.7 # keep it updated the current stable version
workflow_dispatch:

concurrency:
group: stable-merge
cancel-in-progress: false

jobs:
sync-main:
runs-on: ubuntu-latest
name: Syncing main from latest stable
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Full clone necessary for proper merge

- name: Generate token for GitHub
id: generate-github-token
uses: camunda/infra-global-github-actions/generate-github-app-token-from-vault-secrets@5d11ae14b11695bb23f62478361cf5f5cbac6811 # main
with:
github-app-id-vault-key: GITHUB_APP_ID
github-app-id-vault-path: secret/data/products/infrastructure-experience/ci/common
github-app-private-key-vault-key: GITHUB_APP_PRIVATE_KEY
github-app-private-key-vault-path: secret/data/products/infrastructure-experience/ci/common
vault-auth-method: approle
vault-auth-role-id: ${{ secrets.VAULT_ROLE_ID }}
vault-auth-secret-id: ${{ secrets.VAULT_SECRET_ID }}
vault-url: ${{ secrets.VAULT_ADDR }}

- name: Main sync merge
uses: robotology/gh-action-nightly-merge@v1.5.2
with:
stable_branch: ${{ env.CURRENT_STABLE_BRANCH }}
development_branch: main
allow_ff: false # Prevent fast-forward merges
env:
GITHUB_TOKEN: ${{ steps.generate-github-token.outputs.token }}

- name: Notify in Slack in case of failure
id: slack-notification
if: failure() && github.event_name == 'schedule'
uses: camunda/infraex-common-config/.github/actions/report-failure-on-slack@e9a9f33ab193348a82a79bd9250fdf12f708390a # 1.2.19
with:
vault_addr: ${{ secrets.VAULT_ADDR }}
vault_role_id: ${{ secrets.VAULT_ROLE_ID }}
vault_secret_id: ${{ secrets.VAULT_SECRET_ID }}
2 changes: 2 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ python 3.13.2

shellcheck 0.10.0

task 3.30.1

terraform 1.11.0

terraform-docs 0.19.0
Expand Down

0 comments on commit f8a4929

Please sign in to comment.