Ma77Ball commented on code in PR #4278:
URL: https://github.com/apache/texera/pull/4278#discussion_r2914745718
##########
.github/workflows/github-action-build.yml:
##########
@@ -26,14 +26,39 @@ on:
- 'ci-enable/**'
- 'main'
pull_request:
+ types: [opened, synchronize, reopened]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
+ check-permissions:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check if PR is from a fork
+ id: check_fork
+ run: |
+ if [ "${{ github.event.pull_request.head.repo.full_name }}" != "${{
github.repository }}" ]; then
+ echo "is_fork=true" >> $GITHUB_OUTPUT
Review Comment:
I also think that in GitHub settings, the repo should be configured so that
if it is a contributor's first PR, it requires approval.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]