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
4 changed files with 17 additions and 11 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

View File

@@ -231,7 +231,7 @@ timeout 60 sh -c 'until kubectl get hr -A | grep cozy; do sleep 1; done'
sleep 5
kubectl get hr -A | awk 'NR>1 {print "kubectl wait --timeout=20m --for=condition=ready -n " $1 " hr/" $2 " &"} END{print "wait"}' | sh -x
kubectl get hr -A | awk 'NR>1 {print "kubectl wait --timeout=15m --for=condition=ready -n " $1 " hr/" $2 " &"} END{print "wait"}' | sh -x
# Wait for Cluster-API providers
timeout 60 sh -c 'until kubectl get deploy -n cozy-cluster-api capi-controller-manager capi-kamaji-controller-manager capi-kubeadm-bootstrap-controller-manager capi-operator-cluster-api-operator capk-controller-manager; do sleep 1; done'