This is an automated email from the ASF dual-hosted git repository. nfilotto pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new 244ff4ccf73 component-test - Cleanup 244ff4ccf73 is described below commit 244ff4ccf737fc9b59a45de0687202e21e0497e1 Author: Nicolas Filotto <nfilo...@talend.com> AuthorDate: Wed May 31 00:18:25 2023 +0200 component-test - Cleanup --- .github/workflows/pr-comment-main.yml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/pr-comment-main.yml b/.github/workflows/pr-comment-main.yml index 7f74c60435f..281ed8c00dc 100644 --- a/.github/workflows/pr-comment-main.yml +++ b/.github/workflows/pr-comment-main.yml @@ -31,33 +31,20 @@ jobs: matrix: java: [ '17' ] steps: - - name: Dump GitHub context - env: - GITHUB_CONTEXT: ${{ toJson(github) }} - run: | - echo "$GITHUB_CONTEXT" - - name: Retrieve REF + - name: Retrieve sha uses: actions/github-script@v6 with: github-token: ${{ secrets.GITHUB_TOKEN }} - retries: 3 - retry-exempt-status-codes: 400,401 script: | const pr = await github.rest.pulls.get({ owner: context.repo.owner, repo: context.repo.repo, pull_number: context.issue.number }); - console.log(pr) - core.exportVariable('pr_ref', pr.data.head.ref) - - name: Dump GitHub context - env: - GITHUB_CONTEXT: ${{ toJson(github) }} - run: | - echo "$GITHUB_CONTEXT" + core.exportVariable('pr_sha', pr.data.head.sha) - uses: actions/checkout@v3 with: - ref: ${{ github.pr_ref }} + ref: ${{ vars.sha }} repository: ${{ github.event.issue.pull_request.head.repo.full_name }} - id: install-packages uses: ./.github/actions/install-packages