From 88c02f7f7a61a955be29de262fb4b495634b0016 Mon Sep 17 00:00:00 2001 From: Tomas Grosup Date: Mon, 26 May 2025 14:01:31 +0200 Subject: [PATCH] Update commands.yml --- .github/workflows/commands.yml | 41 ---------------------------------- 1 file changed, 41 deletions(-) diff --git a/.github/workflows/commands.yml b/.github/workflows/commands.yml index b3e26cec82a..5d5d97fb146 100644 --- a/.github/workflows/commands.yml +++ b/.github/workflows/commands.yml @@ -80,48 +80,7 @@ jobs: if: steps.command-extractor.outputs.result == 'xlf' id: xlf run: dotnet build src/Compiler /t:UpdateXlf - - name: Post ilverify start comment - if: steps.command-extractor.outputs.result == 'ilverify' - uses: actions/github-script@v3 - with: - script: | - const body = `Started to run ilverify baseline update`; - await github.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: body - }); - - name: Process ilverify command (Update ILVerify baselines) - if: steps.command-extractor.outputs.result == 'ilverify' - id: ilverify - env: - TEST_UPDATE_BSL: 1 - run: | - # Run the ilverify script with TEST_UPDATE_BSL=1 - pwsh tests/ILVerify/ilverify.ps1 - - # Calculate the changes per file - echo "Checking for changes in baseline files..." - FILES_CHANGED=0 - CHANGES_OUTPUT="" - - for file in tests/ILVerify/*.bsl; do - if git diff --quiet "$file"; then - continue - else - FILES_CHANGED=$((FILES_CHANGED + 1)) - LINES_CHANGED=$(git diff --numstat "$file" | awk '{print $1 + $2}') - CHANGES_OUTPUT="${CHANGES_OUTPUT}${file}: ${LINES_CHANGED} lines changed\n" - fi - done - - if [ "$FILES_CHANGED" -eq 0 ]; then - echo "result=The ilverify command ran and did not modify any baseline." >> $GITHUB_OUTPUT - else - echo -e "result=The ilverify command ran and triggered the following number of changes per file:\n${CHANGES_OUTPUT}" >> $GITHUB_OUTPUT - fi - name: Commit and push changes if: steps.fantomas.outcome == 'success' || steps.xlf.outcome == 'success' || steps.ilverify.outcome == 'success' run: |