From 8e71d1f5f3240e6c5481710e4d2042f89ceb697a Mon Sep 17 00:00:00 2001 From: Diego Diaz Date: Fri, 1 Dec 2023 13:23:52 -0300 Subject: [PATCH 1/2] [UPDATE] --- .github/workflows/dp_update_api_names.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dp_update_api_names.yml b/.github/workflows/dp_update_api_names.yml index cf4c82c..5a268f8 100644 --- a/.github/workflows/dp_update_api_names.yml +++ b/.github/workflows/dp_update_api_names.yml @@ -76,8 +76,9 @@ jobs: - name: Create Pull Request uses: 'peter-evans/create-pull-request@v5' with: + token: ${{ secrets.GITHUB_TOKEN }} commit-message: Update api names list title: Update api names - body: Update api names list for developer portal Enable GCP Service API + body: Update api names list for developer portal Enable GCP Service API template branch: main delete-branch: true \ No newline at end of file From 2f536c933c1c4167095c6df7aa40ec7e4388e61a Mon Sep 17 00:00:00 2001 From: Diego Diaz Date: Fri, 1 Dec 2023 13:28:08 -0300 Subject: [PATCH 2/2] [UPDATE] --- .github/workflows/dp_update_api_names.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/dp_update_api_names.yml b/.github/workflows/dp_update_api_names.yml index 5a268f8..0ae7395 100644 --- a/.github/workflows/dp_update_api_names.yml +++ b/.github/workflows/dp_update_api_names.yml @@ -72,13 +72,8 @@ jobs: - name: Push to update-api-name-list run: > git push - - - name: Create Pull Request - uses: 'peter-evans/create-pull-request@v5' - with: - token: ${{ secrets.GITHUB_TOKEN }} - commit-message: Update api names list - title: Update api names - body: Update api names list for developer portal Enable GCP Service API template - branch: main - delete-branch: true \ No newline at end of file + - name: create pull request + run: > + gh pr create -B main -H update-api-name-list --title '[Created by Github action]' --body 'Update api names list for developer portal Enable GCP Service API template' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}