Skip to content

Commit

Permalink
pick commit
Browse files Browse the repository at this point in the history
Signed-off-by: habibayassin <[email protected]>
  • Loading branch information
habibayassin committed Jul 27, 2024
1 parent 7d1e137 commit d197bcc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/github-actions-manual-update-rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
description: 'Type of update (overwrite or normal)'
required: true
default: 'normal'
commitsha:
description: 'Commit SHA'
required: true

jobs:
update:
Expand All @@ -29,9 +32,9 @@ jobs:
API_BASE_URL: ${{ secrets.API_BASE_URL }}
run: |
if [[ "${{ github.event.inputs.type }}" == "overwrite" ]]; then
python flow/util/updateRules.py --keyFile "${CREDS_FILE}" --apiURL ${API_BASE_URL} --overwrite
python flow/util/updateRules.py --keyFile "${CREDS_FILE}" --apiURL ${API_BASE_URL} --commitSHA ${{ github.event.inputs.commitsha }} --overwrite
else
python flow/util/updateRules.py --keyFile "${CREDS_FILE}" --apiURL ${API_BASE_URL}
python flow/util/updateRules.py --keyFile "${CREDS_FILE}" --apiURL ${API_BASE_URL} --commitSHA ${{ github.event.inputs.commitsha }}
fi
- name: Push updated rules
id: remote-update
Expand Down

0 comments on commit d197bcc

Please sign in to comment.