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