Compare commits

...

1 Commits

Author SHA1 Message Date
Andrei Kvapil
f3b3266a30 [ci] Switch from pull-request to pull-request-target
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2025-04-24 17:48:10 +02:00
3 changed files with 16 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
name: Pre-Commit Checks
on:
pull_request:
pull_request_target:
types: [labeled, opened, synchronize, reopened]
paths-ignore:
- '**.md'
@@ -14,11 +14,13 @@ jobs:
pre-commit:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
- name: Checkout code (PR branch)
uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
fetch-tags: true
fetch-tags: true
- name: Set up Python
uses: actions/setup-python@v4

View File

@@ -1,7 +1,7 @@
name: Releasing PR
on:
pull_request:
pull_request_target:
types: [labeled, opened, synchronize, reopened, closed]
concurrency:
@@ -22,11 +22,13 @@ jobs:
github.event.action != 'closed'
steps:
- name: Checkout code
- name: Checkout code (PR branch)
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
fetch-tags: true
fetch-tags: true
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
@@ -65,7 +67,7 @@ jobs:
core.setOutput('tag', tag);
console.log(`✅ Tag to publish: ${tag}`);
# Checkout repo & create / push annotated tag
# Checkout merged commit (default ref -> merge SHA)
- name: Checkout repo
uses: actions/checkout@v4
with:

View File

@@ -1,7 +1,7 @@
name: Pull Request
on:
pull_request:
pull_request_target:
types: [labeled, opened, synchronize, reopened]
concurrency:
@@ -21,11 +21,13 @@ jobs:
!contains(github.event.pull_request.labels.*.name, 'release')
steps:
- name: Checkout code
- name: Checkout code (PR branch)
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
fetch-tags: true
fetch-tags: true
- name: Login to GitHub Container Registry
uses: docker/login-action@v3