From fd76c6e90409d1ce53ff7e0082651b7378b9cf9f Mon Sep 17 00:00:00 2001 From: Thom Espach Date: Fri, 14 Jun 2024 16:35:39 +0100 Subject: [PATCH] Use ./macos path for script execution --- .../workflows/update_phishing_detection_data.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/update_phishing_detection_data.yml b/.github/workflows/update_phishing_detection_data.yml index 5e66a2cf10..fe96a1c701 100644 --- a/.github/workflows/update_phishing_detection_data.yml +++ b/.github/workflows/update_phishing_detection_data.yml @@ -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: @@ -22,7 +13,7 @@ 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: @@ -30,7 +21,7 @@ jobs: 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 @@ -46,4 +37,4 @@ jobs: body: "${{ env.PR_BODY_MACOS }}" token: ${{ secrets.DAX_MACOS_BROWSER_PHISHING_AUTOMATION }} - \ No newline at end of file +