Skip to content

Commit

Permalink
Add cd to update script
Browse files Browse the repository at this point in the history
  • Loading branch information
not-a-rootkit authored Jun 14, 2024
1 parent fd76c6e commit 75a8ec4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/update_phishing_detection_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ jobs:
token: ${{ secrets.DAX_MACOS_BROWSER_PHISHING_AUTOMATION }}
- name: Execute Update Script
run: |
REVISION="$(bash ./macos/scripts/update_phishing_detection_data.sh | grep -oP 'Updated revision from \K\d+')"
cd ./macos
REVISION="$(bash ./scripts/update_phishing_detection_data.sh | grep -oP 'Updated revision from \K\d+')"
create_pr:
runs-on: ubuntu-latest
outputs:
pull-request-url: ${{ steps.create-pr.outputs.pull-request-url }}
steps:
- name: Create macOS PR Body
run: |
TEMPLATE="$(bash ./macos/scripts/update_phishing_detection_data.sh pr-body)"
TEMPLATE="$(bash ./scripts/update_phishing_detection_data.sh pr-body)"
PR_BODY_MACOS="${TEMPLATE//\{\{revision\}\}/$REVISION}"
# --- Effect ---
- name: Create PR for macOS
Expand Down

0 comments on commit 75a8ec4

Please sign in to comment.