Skip to content

Commit

Permalink
Use ./macos path for script execution
Browse files Browse the repository at this point in the history
  • Loading branch information
not-a-rootkit authored Jun 14, 2024
1 parent d0915ff commit fd76c6e
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/update_phishing_detection_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@ name: Update Phishing Detection Datasets
on:
push:
jobs:
check_secrets:
runs-on: ubuntu-latest
steps:
- name: Check if secrets.DAX_MACOS_BROWSER_PHISHING_AUTOMATION exists
run: |
if [ -z "${{ secrets.DAX_MACOS_BROWSER_PHISHING_AUTOMATION }}" ]; then
echo "secrets.DAX_MACOS_BROWSER_PHISHING_AUTOMATION does not exist"
exit 1
fi
update_data:
runs-on: ubuntu-latest
steps:
Expand All @@ -22,15 +13,15 @@ jobs:
token: ${{ secrets.DAX_MACOS_BROWSER_PHISHING_AUTOMATION }}
- name: Execute Update Script
run: |
REVISION="$(bash ./scripts/update_phishing_detection_data.sh | grep -oP 'Updated revision from \K\d+')"
REVISION="$(bash ./macos/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 ./scripts/update_phishing_detection_data.sh pr-body)"
TEMPLATE="$(bash ./macos/scripts/update_phishing_detection_data.sh pr-body)"
PR_BODY_MACOS="${TEMPLATE//\{\{revision\}\}/$REVISION}"
# --- Effect ---
- name: Create PR for macOS
Expand All @@ -46,4 +37,4 @@ jobs:
body: "${{ env.PR_BODY_MACOS }}"
token: ${{ secrets.DAX_MACOS_BROWSER_PHISHING_AUTOMATION }}



0 comments on commit fd76c6e

Please sign in to comment.