summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorNicolas R <atoomic@cpan.org>2020-06-02 00:00:01 -0600
committerTodd Rinaldo <toddr@cpan.org>2020-06-02 15:21:34 -0500
commit9521432a4fa92db2165b4ad5d48440e7e2b65a11 (patch)
treeed305306f6c2cde3532fe3a50d69d24059f974c6 /.github
parent35ad6cb929aafc00a8fd96d4ff1a0a2488eb247e (diff)
downloadperl-9521432a4fa92db2165b4ad5d48440e7e2b65a11.tar.gz
Tweak check_extended_testing job
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/testsuite.yml14
1 files changed, 7 insertions, 7 deletions
diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml
index 30c9f51d39..4639140836 100644
--- a/.github/workflows/testsuite.yml
+++ b/.github/workflows/testsuite.yml
@@ -16,8 +16,7 @@ jobs:
authors:
runs-on: ubuntu-latest
- # not from a fork and base_ref defined
- if: github.event.pull_request.head.repo.full_name == github.repository && github.base_ref != ''
+ if: ( github.event.pull_request.head.repo.full_name == 'Perl/perl5' || github.repository == 'Perl/perl5' ) && github.base_ref != ''
continue-on-error: true
steps:
@@ -88,8 +87,8 @@ jobs:
# use a dedicated job to check if full testsuite is enabled
# avoid starting VMs if not neeced
# and also provide the same check for all platforms
- # the job fails when EXTENDED_TESTING is unset
- # alternatively could upload an artifact file and abort...
+ # the job fails when EXTENDED_TESTING is unset and run on fork repo
+ # note: secrets come from fork repositories
check_extended_testing:
name: "Run EXTENDED_TESTING"
@@ -100,10 +99,11 @@ jobs:
# cannot use secrets earlier as part of 'if:' condition
- name: "Runs if EXTENDED_TESTING is set"
env:
- EXTENDED_TESTING: ${{ secrets.EXTENDED_TESTING }}
+ EXTENDED_TESTING: ${{ secrets.EXTENDED_TESTING }}
+ CURRENT_REPOSITORY: ${{ github.repository }}
run: |
- if [ -z "${EXTENDED_TESTING}" ]; then
- echo "[Warning] Only run this job when secrets.EXTENDED_TESTING is set. Stopping."
+ if [[ -z "${EXTENDED_TESTING}" && "${CURRENT_REPOSITORY}" != 'Perl/perl5' ]]; then
+ echo "[Warning] Only run extended tests on 'Perl/perl5' PRs or when secrets.EXTENDED_TESTING is set. Stopping."
exit 78
fi
- run: echo "Running EXTENDED_TESTING tests"