From 58c318b5cfc7b98280795b794258360668e34e19 Mon Sep 17 00:00:00 2001 From: "SPRINX0\\prochazka" Date: Tue, 25 Feb 2025 11:00:31 +0100 Subject: [PATCH] process templates fix --- .github/workflows/process-templates.yaml | 10 ++++++---- workflow-templates/process-templates.yaml | 8 +++++--- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/process-templates.yaml b/.github/workflows/process-templates.yaml index ab1c8002d..81e2da0d2 100644 --- a/.github/workflows/process-templates.yaml +++ b/.github/workflows/process-templates.yaml @@ -22,7 +22,7 @@ jobs: node-version: 22 - name: Install dependencies run: | - yarn install + yarn add js-yaml lodash - name: Run workflow generation run: | yarn workflows @@ -35,10 +35,12 @@ jobs: # Only commit if there are changes if [[ -n "$(git status --porcelain)" ]]; then git add . - git commit -m "chore: auto-update workflows" + git commit -m "chore: auto-update github workflows" else echo "No changes to commit" fi - name: Push changes - run: | - git push origin master + uses: ad-m/github-push-action@v0.6.0 + with: + github_token: '${{ secrets.DIFLOW_GIT_SECRET }}' + branch: master diff --git a/workflow-templates/process-templates.yaml b/workflow-templates/process-templates.yaml index 2ed6193f4..dab56455f 100644 --- a/workflow-templates/process-templates.yaml +++ b/workflow-templates/process-templates.yaml @@ -24,7 +24,7 @@ jobs: - name: Install dependencies run: | - yarn install + yarn add js-yaml lodash - name: Run workflow generation run: | @@ -46,5 +46,7 @@ jobs: fi - name: Push changes - run: | - git push origin master + uses: ad-m/github-push-action@v0.6.0 + with: + github_token: ${{ secrets.DIFLOW_GIT_SECRET }} + branch: master