Skip to content

Commit

Permalink
chore: try different auth method for request-cli-integ-test (#26525)
Browse files Browse the repository at this point in the history
Try yet another authentication method for the push to the testing pipeline branch.

This has worked on my fork with a PR from another fork.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
mrgrain committed Jul 26, 2023
1 parent 3baffd8 commit c45c174
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/request-cli-integ-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ jobs:
persist-credentials: false
- name: Find changed cli files
id: changed-cli-files
uses: tj-actions/changed-files@v37
uses: tj-actions/changed-files@920e7b9ae1d45913fc81f86c956fee89c77d2e5e
with:
base_sha: ${{ github.event.pull_request.base.sha }}
files_yaml: |
cli:
- packages/aws-cdk/bin/**
Expand All @@ -35,22 +36,22 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
# Needs to run with PROJEN_GITHUB_TOKEN because we need permissions to force push the branch
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Submit to test-pipeline
# Needs to run with PROJEN_GITHUB_TOKEN because we need permissions to force push the branch
run: |
git config --global user.name 'aws-cdk-automation'
git config --global user.email 'aws-cdk-automation@users.noreply.github.com'
git push --force --atomic ${{ github.repositoryUrl }} FETCH_HEAD:test-main-pipeline
git push --force --atomic https://github.com/${{ github.repository }}.git FETCH_HEAD:test-main-pipeline
- name: Explain next steps
uses: thollander/actions-comment-pull-request@v2
uses: thollander/actions-comment-pull-request@dadb7667129e23f12ca3925c90dc5cd7121ab57e
with:
message: |
:arrow_right: **PR build request submitted to `test-main-pipeline`** :arrow_left:
A maintainer must now manually check the pipeline and add the `pr-linter/cli-integ-tested` label once the pipeline succeeds.
A maintainer must now check the pipeline and add the `pr-linter/cli-integ-tested` label once the pipeline succeeds.
comment_tag: request-cli-integ-test
mode: recreate
# Post as our automation user
Expand Down

0 comments on commit c45c174

Please sign in to comment.