Skip to content

Commit a0caf47

Browse files
ci: refactor pr-revision tag removal (#1636)
1 parent e7ef5e5 commit a0caf47

File tree

1 file changed

+2
-33
lines changed

1 file changed

+2
-33
lines changed

.github/workflows/cleanup-pr-revision.yml

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,6 @@ permissions:
77
contents: read
88
id-token: write
99
jobs:
10-
prepare:
11-
runs-on: ubuntu-latest
12-
outputs:
13-
web: ${{ steps.web.outputs.any_modified }}
14-
server: ${{ steps.server.outputs.any_modified }}
15-
steps:
16-
- uses: actions/checkout@v4
17-
with:
18-
fetch-depth: 0
19-
- name: changed files for web
20-
id: web
21-
uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1 # v45.0.1
22-
with:
23-
files: |
24-
web/
25-
.github/workflows/ci_web.yml
26-
.github/workflows/build_web.yml
27-
.github/workflows/deploy_web_nightly.yml
28-
CHANGELOG.md
29-
30-
- name: changed files for server
31-
id: server
32-
uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1 # v45.0.1
33-
with:
34-
files: |
35-
server/
36-
.github/workflows/ci_server.yml
37-
.github/workflows/build_server.yml
38-
.github/workflows/deploy_server_nightly.yml
39-
CHANGELOG.md
40-
4110
show-github-event-info:
4211
runs-on: ubuntu-latest
4312
steps:
@@ -50,7 +19,7 @@ jobs:
5019
echo "PR number: ${{ github.event.pull_request.number }}"
5120
5221
cleanup-pr-revision-server:
53-
needs: [prepare,show-github-event-info]
22+
needs: [show-github-event-info]
5423
if: needs.prepare.outputs.server == 'true'
5524
uses: ./.github/workflows/cleanup-cloudrun-tag.yml
5625
with:
@@ -59,7 +28,7 @@ jobs:
5928
secrets: inherit
6029

6130
cleanup-pr-revision-web:
62-
needs: [prepare,show-github-event-info]
31+
needs: [show-github-event-info]
6332
if: needs.prepare.outputs.web == 'true'
6433
uses: ./.github/workflows/cleanup-cloudrun-tag.yml
6534
with:

0 commit comments

Comments
 (0)