danila-b commented on code in PR #14331: URL: https://github.com/apache/datafusion/pull/14331#discussion_r1966524077
########## .github/workflows/extended.yml: ########## @@ -33,16 +33,46 @@ on: push: branches: - main + issue_comment: + types: [created] + +permissions: + pull-requests: write jobs: + # Check issue comment and notify that extended tests are running + check_issue_comment: + name: Check issue comment + runs-on: ubuntu-latest + if: github.event.issue.pull_request && github.event.comment.body == 'run extended tests' + steps: + - uses: actions/github-script@v7 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: "Running extended tests..." + }) + # Check crate compiles and base cargo check passes linux-build-lib: name: linux build test runs-on: ubuntu-latest container: image: amd64/rust + if: | + github.event_name == 'push' || + (github.event_name == 'issue_comment' && github.event.issue.pull_request && github.event.comment.body == 'run extended tests') steps: - uses: actions/checkout@v4 + with: + # Check out the pull request branch if triggered by a comment + ref: ${{ github.event_name == 'issue_comment' && github.event.issue.pull_request.head.ref || github.ref }} Review Comment: A fully formatted ref should work. Probably there are other ways to fetch the same info as well. ```suggestion ref: ${{ github.event_name == 'issue_comment' && format('refs/pull/{0}/head', github.event.issue.number) || github.ref }} ``` [Test PR](https://github.com/danila-b/datafusion/pull/3) [Main branch workflow state](https://github.com/danila-b/datafusion/blob/main/.github/workflows/extended.yml#L74) [Checkout commit matches PR head](https://github.com/danila-b/datafusion/actions/runs/13473711396/job/37650297887) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org