-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathapollo_deployments_service_ack.yml
More file actions
49 lines (44 loc) · 1.57 KB
/
apollo_deployments_service_ack.yml
File metadata and controls
49 lines (44 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Apollo deployments service.rs acknowledgment
on:
pull_request:
types:
- opened
- reopened
- synchronize
paths:
- "crates/apollo_deployments/src/service.rs"
- ".github/workflows/apollo_deployments_service_ack.yml"
# On PR events, cancel existing CI runs on this same PR for this workflow.
concurrency:
group: >
${{ github.workflow }}-
${{ github.ref }}-
${{ github.event_name == 'pull_request' && 'PR' || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
assert-file-exists:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Assert service.rs exists
run: |
if [ ! -f crates/apollo_deployments/src/service.rs ]; then
echo "::error::crates/apollo_deployments/src/service.rs was removed or is missing."
exit 1
fi
echo "File crates/apollo_deployments/src/service.rs exists."
manual-confirmation:
runs-on: ubuntu-24.04
needs: [assert-file-exists]
environment: apollo-deployments-service-ack
steps:
- name: Display acknowledgment message
run: |
echo "--- Acknowledgment message ---"
if [ -n "${{ vars.APOLLO_SERVICE_RS_MESSAGE }}" ]; then
echo "${{ vars.APOLLO_SERVICE_RS_MESSAGE }}"
else
echo "Replace this placeholder: set APOLLO_SERVICE_RS_MESSAGE in the environment or edit this workflow with your custom message."
fi
echo "---"
echo "This job passed after manual approval of the environment."