From ce8286c6e690fafac79396f209fdb6924b94407c Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Tue, 28 Feb 2023 19:29:16 +0300 Subject: [PATCH 1/4] Troubleshooting github action --- .github/workflows/update_helpfiles.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update_helpfiles.yml b/.github/workflows/update_helpfiles.yml index 72104b8764b7..663d43cbe47e 100644 --- a/.github/workflows/update_helpfiles.yml +++ b/.github/workflows/update_helpfiles.yml @@ -8,7 +8,9 @@ name: "Powershell Update Help Files PR" on: push: branches: - - 'weekly_update_help_files_*' + - 'weekly_test_*' +permissions: + pull-requests: write # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -36,7 +38,7 @@ jobs: REVIEWERS: timayabi2020 ASSIGNEDTO: timayabi2020 LABELS: generated - BASE: main + BASE: github_action_failure HEAD: ${{steps.create_branch.outputs.branch}} run: | curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1 From ad925f225cb313bb4ec8b151d3992d7b01959be4 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Tue, 28 Feb 2023 19:30:45 +0300 Subject: [PATCH 2/4] Testing permissions --- .github/workflows/update_helpfiles.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update_helpfiles.yml b/.github/workflows/update_helpfiles.yml index 663d43cbe47e..6c34e51f6d8f 100644 --- a/.github/workflows/update_helpfiles.yml +++ b/.github/workflows/update_helpfiles.yml @@ -11,7 +11,7 @@ on: - 'weekly_test_*' permissions: pull-requests: write - + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: updateHelpsDocsPR: @@ -38,7 +38,7 @@ jobs: REVIEWERS: timayabi2020 ASSIGNEDTO: timayabi2020 LABELS: generated - BASE: github_action_failure + BASE: main HEAD: ${{steps.create_branch.outputs.branch}} run: | curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1 From 0a858446986c5b96710b8371fa4f56d98cdbed9a Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Tue, 28 Feb 2023 19:34:30 +0300 Subject: [PATCH 3/4] Rolled back to branch pattern --- .github/workflows/update_helpfiles.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update_helpfiles.yml b/.github/workflows/update_helpfiles.yml index 6c34e51f6d8f..66523674c36f 100644 --- a/.github/workflows/update_helpfiles.yml +++ b/.github/workflows/update_helpfiles.yml @@ -8,7 +8,7 @@ name: "Powershell Update Help Files PR" on: push: branches: - - 'weekly_test_*' + - 'weekly_update_help_files_*' permissions: pull-requests: write From 25c28e11be2dd278e382af0bde3bd264478d05a6 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Tue, 28 Feb 2023 19:51:59 +0300 Subject: [PATCH 4/4] Updated the sdk version --- azure-pipelines/update-template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines/update-template.yml b/azure-pipelines/update-template.yml index 71ce16b26c5a..00b0ccb4d710 100644 --- a/azure-pipelines/update-template.yml +++ b/azure-pipelines/update-template.yml @@ -9,7 +9,7 @@ steps: pwsh: true script: | $modules = Get-Module -Name Microsoft.Graph -ListAvailable - if ($modules.Count -gt 0 -and $modules[0].Version -eq "1.20.0") { + if ($modules.Count -gt 0 -and $modules[0].Version -eq "1.21.0") { echo "Latest version already installed" }else { echo "Installing latest version"