Export validated workflow updates

This commit is contained in:
Alexandre
2026-08-04 07:42:58 +02:00
parent b8a04ed953
commit af5462eb0f

View File

@@ -7,7 +7,7 @@ on:
- master - master
permissions: permissions:
contents: write contents: read
jobs: jobs:
prepare: prepare:
@@ -89,18 +89,21 @@ jobs:
with: with:
path: ./.tmp-addon-linter-long path: ./.tmp-addon-linter-long
- name: Commit compatibility implementation - name: Check prepared workflow changes
shell: bash shell: bash
run: | run: |
set -euo pipefail set -euo pipefail
rm -rf .tmp-addon-linter-short .tmp-addon-linter-long .addon-lint git diff --check
rm .github/workflows/agent-support-app-config-linter.yml git diff --exit-code -- .github/actions/addon-linter/action.yml \
.github/scripts/prepare_addon_lint_config.py \
.github/scripts/test_prepare_addon_lint_config.py
test "$(git diff --name-only -- .github/workflows/onpr_check-pr.yaml .github/workflows/onpush_builder.yaml | wc -l)" -eq 2
git config user.name "github-actions[bot]" - name: Export validated workflow files
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" uses: actions/upload-artifact@v6
git add .github/workflows/onpr_check-pr.yaml \ with:
.github/workflows/onpush_builder.yaml \ name: app-config-workflows
.github/workflows/agent-support-app-config-linter.yml path: |
git diff --cached --check .github/workflows/onpr_check-pr.yaml
git commit -m "Use app_config-compatible add-on linter" .github/workflows/onpush_builder.yaml
git push origin HEAD:${{ github.event.pull_request.head.ref }} if-no-files-found: error