Skip to content

Commit 327c1af

Browse files
committed
closed as sync workflow
1 parent a032797 commit 327c1af

File tree

2 files changed

+2
-28
lines changed

2 files changed

+2
-28
lines changed

.github/workflows/PR-close.yaml

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: PR Workflow
33
on:
44
pull_request:
55
types:
6+
- synchronize
67
- closed
78

89
defaults:
@@ -16,19 +17,7 @@ env:
1617
GH_TOKEN: ${{ secrets.RHACS_BOT_GITHUB_TOKEN }}
1718

1819
jobs:
19-
create-dev-cluster:
20-
runs-on: ubuntu-latest
21-
steps:
22-
- uses: stackrox/actions/infra/create-cluster@v1
23-
with:
24-
flavor: gke-default
25-
name: infra-pr-${{ github.event.pull_request.number }}
26-
args: machine-type=e2-medium,nodes=3,gcp-image-type=ubuntu_containerd
27-
lifespan: ${{ github.actor == 'dependabot[bot]' && '1h' || '24h' }}
28-
wait: true
29-
token: ${{ secrets.INFRA_TOKEN }}
30-
31-
deploy-and-test:
20+
destroy:
3221
runs-on: ubuntu-latest
3322
env:
3423
KUBECONFIG: /tmp/kubeconfig
@@ -37,27 +26,13 @@ jobs:
3726
USE_GKE_GCLOUD_AUTH_PLUGIN: "True"
3827

3928
steps:
40-
- uses: actions/setup-go@v5
41-
with:
42-
go-version: "1.23"
43-
4429
- name: Checkout
4530
uses: actions/checkout@v4
4631
with:
4732
fetch-depth: 0
4833
ref: ${{ github.event.pull_request.head.sha }}
4934
path: go/src/github.com/stackrox/infra
5035

51-
- name: Authenticate to GCloud
52-
uses: google-github-actions/auth@v2
53-
with:
54-
credentials_json: ${{ secrets.INFRA_CI_AUTOMATION_GCP_SA }}
55-
56-
- name: Set up Cloud SDK
57-
uses: "google-github-actions/setup-gcloud@v2"
58-
with:
59-
install_components: "gke-gcloud-auth-plugin"
60-
6136
- name: Download production infractl
6237
uses: stackrox/actions/infra/install-infractl@v1
6338

.github/workflows/PR.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
pull_request:
55
types:
66
- opened
7-
- synchronize
87

98
defaults:
109
run:

0 commit comments

Comments
 (0)