update git action #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: EmergencyPauseGithubAction | |
- name: Debug - List files | |
run: ls -R | |
- name: Run diamondEMERGENCYPause script | |
run: | | |
chmod +x script/tasks/diamondEmergencyPause2.sh | |
./script/tasks/diamondEmergencyPause2.sh | |
env: | |
PRIVATE_KEY_PAUSER_WALLET: ${{ secrets.TEST_SECRET }} |