-
Notifications
You must be signed in to change notification settings - Fork 51
46 lines (38 loc) · 1.23 KB
/
diamondEmergencyPause.yml
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
name: Diamond Emergency Pause
on:
push:
workflow_dispatch: # Allows manual trigger of the workflow
jobs:
diamond-emergency-pause:
runs-on: ubuntu-latest
steps:
- name: Check user permissions
id: check_user
run: |
ALLOWED_USERS=("0xDEnYO" "maxklenk" "ezynda3")
if [[ ! " ${ALLOWED_USERS[@]} " =~ " ${{ github.actor }} " ]]; then
echo "User ${{ github.actor }} is not allowed to run this workflow."
exit 1
fi
shell: bash
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: main # Ensure you are checking out the correct branch
- name: Debug - List files
run: ls -R
- name: Debug - Print current directory
run: pwd
- name: Debug - Check file existence
run: |
if [ -f script/tasks/diamondEmergencyPause2.sh ]; then
echo "File exists"
else
echo "File does not exist"
fi
- name: Run diamondEMERGENCYPause script
run: |
chmod +x script/tasks/diamondEmergencyPause2.sh
./script/tasks/diamondEmergencyPause2.sh
env:
PRIVATE_KEY_PAUSER_WALLET: ${{ secrets.TEST_SECRET }}