Compare commits

...

2 commits

Author SHA1 Message Date
Al. Lopez
383adbabf8
Merge a1e581c8e8 into ada0db62dc 2025-07-24 18:34:46 +03:00
AL2009man
a1e581c8e8 attempt to fix CI GitHub Action PRs 2025-04-30 21:39:37 -04:00
3 changed files with 19 additions and 2 deletions

View file

@ -1,7 +1,9 @@
name: validate-external name: validate-external
on: on:
pull_request_target: pull_request_target:
types: [opened, synchronize] branches:
- main
types: [edited, opened, synchronize]
jobs: jobs:
authorize: authorize:
if: github.repository != github.event.pull_request.head.repo.full_name if: github.repository != github.event.pull_request.head.repo.full_name
@ -18,3 +20,8 @@ jobs:
secrets: secrets:
ASSET_REPO: ${{ secrets.ASSET_REPO }} ASSET_REPO: ${{ secrets.ASSET_REPO }}
ASSET_REPO_TOKEN: ${{ secrets.ASSET_REPO_TOKEN }} ASSET_REPO_TOKEN: ${{ secrets.ASSET_REPO_TOKEN }}
steps:
- name: Checkout PR branch
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}

View file

@ -4,9 +4,16 @@ on:
branches: branches:
- main - main
pull_request: pull_request:
types: [opened, synchronize] branches:
- main
types: [edited, opened, synchronize]
jobs: jobs:
build: build:
if: github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name if: github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name
uses: ./.github/workflows/validate.yml uses: ./.github/workflows/validate.yml
secrets: inherit secrets: inherit
steps:
- name: Checkout PR branch
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}

View file

@ -26,6 +26,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
ref: ${{ github.event.pull_request.head.ref }}
- name: Checkout Private Repository - name: Checkout Private Repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -92,6 +93,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
ref: ${{ github.event.pull_request.head.ref }}
- name: Checkout private repository - name: Checkout private repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -170,6 +172,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
ref: ${{ github.event.pull_request.head.ref }}
- name: Checkout Private Repository - name: Checkout Private Repository
uses: actions/checkout@v4 uses: actions/checkout@v4