From 6311f8a6e9f09e29309a4eb6a8720acbc545a231 Mon Sep 17 00:00:00 2001 From: ksuchitra532 Date: Thu, 27 Feb 2025 11:02:51 +0000 Subject: [PATCH 1/2] adding runtime-version inputs to get full version number from GM repo --- .github/workflows/Beta.yml | 18 +++++++----------- .github/workflows/CI.yml | 10 +--------- .github/workflows/Monthly.yml | 18 +++++++----------- .github/workflows/Red.yml | 18 +++++++----------- .github/workflows/slack-notification.yml | 2 +- 5 files changed, 23 insertions(+), 43 deletions(-) diff --git a/.github/workflows/Beta.yml b/.github/workflows/Beta.yml index 41b9e7c..c32b6cc 100644 --- a/.github/workflows/Beta.yml +++ b/.github/workflows/Beta.yml @@ -14,7 +14,11 @@ on: EXTRA_PARAMS: description: "EXTRA_PARAMS from config" required: false - type: string + type: string + RUNTIME_VERSION: + description: "Full Runtime Version" + required: true + type: string jobs: @@ -38,16 +42,8 @@ jobs: if: always() uses: actions/upload-artifact@v4 with: - name: summary_file - path: ${{ github.workspace }}\GM-TF\results - - name: Download Runtime Build Number - uses: dawidd6/action-download-artifact@v3 - with: - name: buildnumber - path: ${{ github.workspace }}\GM-TF - workflow: Zeus-Runtime-Beta.yml - repo: YoYoGames/GameMaker - github_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + name: summary_file-${{ github.event.inputs.RUNTIME_VERSION }} + path: ${{ github.workspace }}\GM-TF\results - name: Running TF Compare Script run: python .\tf_compare.py --github-token ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} --workflow ${{ github.workflow }}.yml working-directory: GM-TF diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index bd32350..d07d719 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -23,15 +23,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: summary_file - path: ${{ github.workspace }}\GM-TF\results - - name: Download Runtime Build Number - uses: dawidd6/action-download-artifact@v3 - with: - name: buildnumber - path: ${{ github.workspace }}\GM-TF - workflow: Zeus-Runtime-Red.yml - repo: YoYoGames/GameMaker - github_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + path: ${{ github.workspace }}\GM-TF\results - name: Running TF Compare Script run: python .\tf_compare.py --github-token ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} --workflow ${{ github.workflow }}.yml working-directory: GM-TF diff --git a/.github/workflows/Monthly.yml b/.github/workflows/Monthly.yml index 293c071..1c292e0 100644 --- a/.github/workflows/Monthly.yml +++ b/.github/workflows/Monthly.yml @@ -14,7 +14,11 @@ on: EXTRA_PARAMS: description: "EXTRA_PARAMS from config" required: false - type: string + type: string + RUNTIME_VERSION: + description: "Full Runtime Version" + required: true + type: string jobs: @@ -38,16 +42,8 @@ jobs: if: always() uses: actions/upload-artifact@v4 with: - name: summary_file - path: ${{ github.workspace }}\GM-TF\results - - name: Download Runtime Build Number - uses: dawidd6/action-download-artifact@v3 - with: - name: buildnumber - path: ${{ github.workspace }}\GM-TF - workflow: Zeus-Runtime-Green.yml - repo: YoYoGames/GameMaker - github_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + name: summary_file-${{ github.event.inputs.RUNTIME_VERSION }} + path: ${{ github.workspace }}\GM-TF\results - name: Running TF Compare Script run: python .\tf_compare.py --github-token ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} --workflow ${{ github.workflow }}.yml working-directory: GM-TF diff --git a/.github/workflows/Red.yml b/.github/workflows/Red.yml index f768485..1770f11 100644 --- a/.github/workflows/Red.yml +++ b/.github/workflows/Red.yml @@ -14,7 +14,11 @@ on: EXTRA_PARAMS: description: "EXTRA_PARAMS from config" required: false - type: string + type: string + RUNTIME_VERSION: + description: "Full Runtime Version" + required: true + type: string jobs: @@ -38,16 +42,8 @@ jobs: if: always() uses: actions/upload-artifact@v4 with: - name: summary_file - path: ${{ github.workspace }}\GM-TF\results - - name: Download Runtime Build Number - uses: dawidd6/action-download-artifact@v3 - with: - name: buildnumber - path: ${{ github.workspace }}\GM-TF - workflow: Zeus-Runtime-Red.yml - repo: YoYoGames/GameMaker - github_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + name: summary_file-${{ github.event.inputs.RUNTIME_VERSION }} + path: ${{ github.workspace }}\GM-TF\results - name: Running TF Compare Script run: python .\tf_compare.py --github-token ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} --workflow ${{ github.workflow }}.yml working-directory: GM-TF diff --git a/.github/workflows/slack-notification.yml b/.github/workflows/slack-notification.yml index 116ecdd..8fddd7c 100644 --- a/.github/workflows/slack-notification.yml +++ b/.github/workflows/slack-notification.yml @@ -15,7 +15,7 @@ jobs: echo "Checking for offline runners..." # Get the list of runners for the specific repository - RESPONSE=$(gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/YoYoGames/GM-TF/actions/runners || echo '{"runners":[]}') + RESPONSE=$(gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/YoYoGames/GM-TF/actions/runners 2>/dev/null || echo '{"runners":[]}') echo "Raw API response: $RESPONSE" # Check if the response contains any runners From def7de362dcc6cb5861073bfe2d8e0047f985fb0 Mon Sep 17 00:00:00 2001 From: ksuchitra532 Date: Thu, 27 Feb 2025 11:06:58 +0000 Subject: [PATCH 2/2] reverting changes for slack notifications --- .github/workflows/slack-notification.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/slack-notification.yml b/.github/workflows/slack-notification.yml index 8fddd7c..116ecdd 100644 --- a/.github/workflows/slack-notification.yml +++ b/.github/workflows/slack-notification.yml @@ -15,7 +15,7 @@ jobs: echo "Checking for offline runners..." # Get the list of runners for the specific repository - RESPONSE=$(gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/YoYoGames/GM-TF/actions/runners 2>/dev/null || echo '{"runners":[]}') + RESPONSE=$(gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/YoYoGames/GM-TF/actions/runners || echo '{"runners":[]}') echo "Raw API response: $RESPONSE" # Check if the response contains any runners