From 69b2bf93920b61c740002fd6c4de7bb8503143a9 Mon Sep 17 00:00:00 2001 From: KevKibe Date: Fri, 1 Nov 2024 17:29:21 +0300 Subject: [PATCH 01/16] add test failure workflow --- .github/workflows/fail_kaggle_action.yml | 36 ++++++++++++++++++++++++ .github/workflows/test-kaggle-action.yml | 8 ++++++ action.yml | 15 ++++++---- 3 files changed, 54 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/fail_kaggle_action.yml diff --git a/.github/workflows/fail_kaggle_action.yml b/.github/workflows/fail_kaggle_action.yml new file mode 100644 index 0000000..4d45706 --- /dev/null +++ b/.github/workflows/fail_kaggle_action.yml @@ -0,0 +1,36 @@ +name: Test Kaggle Script Action Failure + +on: + pull_request: + +jobs: + test_kaggle_action_failure: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Kaggle API credentials + env: + KAGGLE_USERNAME: ${{ secrets.KAGGLE_USERNAME }} + KAGGLE_KEY: ${{ secrets.KAGGLE_KEY }} + run: | + echo "KAGGLE_USERNAME=${KAGGLE_USERNAME}" >> $GITHUB_ENV + echo "KAGGLE_KEY=${KAGGLE_KEY}" >> $GITHUB_ENV + + - name: Test Kaggle Script Action Failure + uses: ./ + with: + username: ${{ secrets.KAGGLE_USERNAME }} + key: ${{ secrets.KAGGLE_KEY }} + title: "Test Kaggle Script Action Failure" + custom_script: | + python test.py --url "https://jsonplaceholder.typicode.com/nonexistent" + + working_subdir: "tests" + enable_internet: true + enable_gpu: true + enable_tpu: false + sleep_time: 10 + diff --git a/.github/workflows/test-kaggle-action.yml b/.github/workflows/test-kaggle-action.yml index 15af21c..5a642ff 100644 --- a/.github/workflows/test-kaggle-action.yml +++ b/.github/workflows/test-kaggle-action.yml @@ -11,6 +11,14 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + - name: Set up Kaggle API credentials + env: + KAGGLE_USERNAME: ${{ secrets.KAGGLE_USERNAME }} + KAGGLE_KEY: ${{ secrets.KAGGLE_KEY }} + run: | + echo "KAGGLE_USERNAME=${KAGGLE_USERNAME}" >> $GITHUB_ENV + echo "KAGGLE_KEY=${KAGGLE_KEY}" >> $GITHUB_ENV + - name: Test Kaggle Script Action uses: ./ with: diff --git a/action.yml b/action.yml index d89270c..ac93480 100644 --- a/action.yml +++ b/action.yml @@ -270,18 +270,23 @@ runs: kaggle kernels output "$kernel_name" -p . 2>&1 if [ -f "$log_file" ]; then + error_found=false while IFS= read -r line; do [[ -n "$line" ]] && log_message "$line" - done < <(jq -r '.[].data' "$log_file") + if [[ "$line" == *"error"* ]]; then + log_message "::error::Kernel Error: $line" + error_found=true + fi + done < "$log_file" + if $error_found; then + log_message "::error::FAIL: Errors found in the log." + exit 1 + fi else log_message "Log file '$log_file' not found." fi log_message "::endgroup::" - - if [[ "$status" == *"403"* || "$status" == *"denied"* || "$status" == *"error"* || "$status" == *"cancel"* ]]; then - exit 1 - fi branding: icon: upload From e2e4130c1fb696598d2eb21043509452587ced68 Mon Sep 17 00:00:00 2001 From: KevKibe Date: Fri, 1 Nov 2024 17:36:11 +0300 Subject: [PATCH 02/16] fix log output to return log in the data field --- action.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index ac93480..035cfe1 100644 --- a/action.yml +++ b/action.yml @@ -272,12 +272,18 @@ runs: if [ -f "$log_file" ]; then error_found=false while IFS= read -r line; do - [[ -n "$line" ]] && log_message "$line" + # Check if the line contains '.data' and log only those + if [[ "$line" == *".data"* ]]; then + log_message "$line" + fi + + # Check for errors and log the error message if found if [[ "$line" == *"error"* ]]; then log_message "::error::Kernel Error: $line" error_found=true fi done < "$log_file" + if $error_found; then log_message "::error::FAIL: Errors found in the log." exit 1 @@ -288,6 +294,7 @@ runs: log_message "::endgroup::" + branding: icon: upload color: green From 9f294971850504da0cf214d87deeb90a41b2abc3 Mon Sep 17 00:00:00 2001 From: KevKibe Date: Fri, 1 Nov 2024 17:40:17 +0300 Subject: [PATCH 03/16] revert changes --- action.yml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/action.yml b/action.yml index 035cfe1..a85a745 100644 --- a/action.yml +++ b/action.yml @@ -270,29 +270,18 @@ runs: kaggle kernels output "$kernel_name" -p . 2>&1 if [ -f "$log_file" ]; then - error_found=false while IFS= read -r line; do - # Check if the line contains '.data' and log only those - if [[ "$line" == *".data"* ]]; then - log_message "$line" - fi - - # Check for errors and log the error message if found - if [[ "$line" == *"error"* ]]; then - log_message "::error::Kernel Error: $line" - error_found=true - fi - done < "$log_file" - - if $error_found; then - log_message "::error::FAIL: Errors found in the log." - exit 1 - fi + [[ -n "$line" ]] && log_message "$line" + done < <(jq -r '.[].data' "$log_file") else log_message "Log file '$log_file' not found." fi log_message "::endgroup::" + + if [[ "$status" == *"403"* || "$status" == *"denied"* || "$status" == *"error"* || "$status" == *"cancel"* ]]; then + exit 1 + fi branding: From 46db0f1f652a966f3985c791a4c19e7bfca056aa Mon Sep 17 00:00:00 2001 From: KevKibe Date: Fri, 1 Nov 2024 17:53:30 +0300 Subject: [PATCH 04/16] update readme fix action. bash script --- README.md | 4 ++-- action.yml | 46 ++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 44 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a8ef67f..836a37c 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ on: pull_request: jobs: - test_kaggle_action: + run_unit_tests: runs-on: ubuntu-latest steps: @@ -79,7 +79,7 @@ on: - main jobs: - test_kaggle_action: + run_model_training: runs-on: ubuntu-latest steps: diff --git a/action.yml b/action.yml index a85a745..625e20a 100644 --- a/action.yml +++ b/action.yml @@ -237,14 +237,45 @@ runs: action_path="${{ github.action_path }}" action_path=$(realpath "${{ github.action_path }}") echo "Checking status for Kaggle kernel: '$kernel_name'" - + log_message() { echo "[$(date +'%Y-%m-%d %H:%M:%S')] $1" } + + check_log_for_errors() { + local log_file="$1" + local error_found=0 + + # Define error patterns to search for + local error_patterns=( + "Error" + "ERROR" + "error" + "Traceback" + "Exception" + "404 Client Error" + "failed" + "FAIL" + ) + + # Read the log file and check for error patterns + while IFS= read -r line; do + for pattern in "${error_patterns[@]}"; do + if [[ "$line" == *"$pattern"* ]]; then + log_message "::error::Error found in log: $line" + error_found=1 + break + fi + done + done < "$log_file" + + return $error_found + } + while true; do log_message "Retrieving kernel status..." status=$(kaggle kernels status "$kernel_name" 2>&1) - + if [[ "$status" == *"403"* || "$status" == *"denied"* ]]; then log_message "::error::Access denied or kernel not found. Check if the API key has permissions and if the kernel name is correct." exit 1 @@ -262,19 +293,26 @@ runs: sleep "${{ inputs.sleep_time }}" fi done - + log_file="./$kernel_slug.log" - + log_message "::group::Full log" log_message "Fetching full kernel output log for '$kernel_name':" kaggle kernels output "$kernel_name" -p . 2>&1 if [ -f "$log_file" ]; then + # Check logs for errors + if check_log_for_errors "$log_file"; then + log_message "::error::Errors found in the kernel log. Failing the workflow." + exit 1 + fi + while IFS= read -r line; do [[ -n "$line" ]] && log_message "$line" done < <(jq -r '.[].data' "$log_file") else log_message "Log file '$log_file' not found." + exit 1 fi log_message "::endgroup::" From 19e768e21bc6604a4bdfc3a0e8d900392aa57827 Mon Sep 17 00:00:00 2001 From: KevKibe Date: Fri, 1 Nov 2024 17:59:29 +0300 Subject: [PATCH 05/16] fix action. bash script --- action.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 625e20a..047c77a 100644 --- a/action.yml +++ b/action.yml @@ -245,6 +245,7 @@ runs: check_log_for_errors() { local log_file="$1" local error_found=0 + local error_message="" # Define error patterns to search for local error_patterns=( @@ -262,14 +263,20 @@ runs: while IFS= read -r line; do for pattern in "${error_patterns[@]}"; do if [[ "$line" == *"$pattern"* ]]; then - log_message "::error::Error found in log: $line" error_found=1 - break + error_message+="$line\n" fi done done < "$log_file" - return $error_found + if [[ $error_found -eq 1 ]]; then + # Trim the error message and remove leading/trailing whitespace + error_message=$(echo -e "$error_message" | sed 's/^[[:space:]]*//;s/[[:space:]]*$//') + log_message "::error::$error_message" + return 1 + fi + + return 0 } while true; do @@ -301,9 +308,9 @@ runs: kaggle kernels output "$kernel_name" -p . 2>&1 if [ -f "$log_file" ]; then - # Check logs for errors - if check_log_for_errors "$log_file"; then - log_message "::error::Errors found in the kernel log. Failing the workflow." + # Check logs for errors and return the actual error message + if ! check_log_for_errors "$log_file"; then + # If errors are found, the script will have already logged the specific error exit 1 fi From 016c35905cd6d5298fd639d2c445d0ee8e6dbbc4 Mon Sep 17 00:00:00 2001 From: KevKibe Date: Fri, 1 Nov 2024 18:03:50 +0300 Subject: [PATCH 06/16] fix action. bash script --- action.yml | 37 +++++++------------------------------ 1 file changed, 7 insertions(+), 30 deletions(-) diff --git a/action.yml b/action.yml index 047c77a..015a0d1 100644 --- a/action.yml +++ b/action.yml @@ -247,31 +247,10 @@ runs: local error_found=0 local error_message="" - # Define error patterns to search for - local error_patterns=( - "Error" - "ERROR" - "error" - "Traceback" - "Exception" - "404 Client Error" - "failed" - "FAIL" - ) - - # Read the log file and check for error patterns - while IFS= read -r line; do - for pattern in "${error_patterns[@]}"; do - if [[ "$line" == *"$pattern"* ]]; then - error_found=1 - error_message+="$line\n" - fi - done - done < "$log_file" - - if [[ $error_found -eq 1 ]]; then - # Trim the error message and remove leading/trailing whitespace - error_message=$(echo -e "$error_message" | sed 's/^[[:space:]]*//;s/[[:space:]]*$//') + # Extract and parse error messages from JSON data fields + error_message=$(jq -r 'select(.stream_name=="stdout" and (.data | test("error"))) | .data' "$log_file" | head -n 1) + + if [[ -n "$error_message" ]]; then log_message "::error::$error_message" return 1 fi @@ -308,15 +287,13 @@ runs: kaggle kernels output "$kernel_name" -p . 2>&1 if [ -f "$log_file" ]; then - # Check logs for errors and return the actual error message + # Check logs for errors and return the specific error from the data field if ! check_log_for_errors "$log_file"; then - # If errors are found, the script will have already logged the specific error exit 1 fi - while IFS= read -r line; do - [[ -n "$line" ]] && log_message "$line" - done < <(jq -r '.[].data' "$log_file") + # Display full log using jq to parse JSON data fields + jq -r 'select(.stream_name=="stdout") | .data' "$log_file" else log_message "Log file '$log_file' not found." exit 1 From 2da3cb58074a93156f591db411abc8e07ebee3c8 Mon Sep 17 00:00:00 2001 From: KevKibe Date: Fri, 1 Nov 2024 18:11:49 +0300 Subject: [PATCH 07/16] fix error handling in the action --- action.yml | 34 +++++++++------------------------- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/action.yml b/action.yml index 015a0d1..30b0036 100644 --- a/action.yml +++ b/action.yml @@ -242,22 +242,6 @@ runs: echo "[$(date +'%Y-%m-%d %H:%M:%S')] $1" } - check_log_for_errors() { - local log_file="$1" - local error_found=0 - local error_message="" - - # Extract and parse error messages from JSON data fields - error_message=$(jq -r 'select(.stream_name=="stdout" and (.data | test("error"))) | .data' "$log_file" | head -n 1) - - if [[ -n "$error_message" ]]; then - log_message "::error::$error_message" - return 1 - fi - - return 0 - } - while true; do log_message "Retrieving kernel status..." status=$(kaggle kernels status "$kernel_name" 2>&1) @@ -275,7 +259,7 @@ runs: log_message "SUCCESS: Script execution completed successfully!" break else - log_message "Kernel is still running. Rechecking in "${{ inputs.sleep_time }}" seconds..." + log_message "Kernel is still running. Rechecking in ${ { inputs.sleep_time }} seconds..." sleep "${{ inputs.sleep_time }}" fi done @@ -287,16 +271,15 @@ runs: kaggle kernels output "$kernel_name" -p . 2>&1 if [ -f "$log_file" ]; then - # Check logs for errors and return the specific error from the data field - if ! check_log_for_errors "$log_file"; then - exit 1 - fi - - # Display full log using jq to parse JSON data fields - jq -r 'select(.stream_name=="stdout") | .data' "$log_file" + while IFS= read -r line; do + [[ -n "$line" ]] && log_message "$line" + if echo "$line" | grep -Ei "Error|Traceback|Exception|404 Client Error|failed|FAIL"; then + log_message "::error::Error found in log: $line" + exit 1 + fi + done < "$log_file" else log_message "Log file '$log_file' not found." - exit 1 fi log_message "::endgroup::" @@ -306,6 +289,7 @@ runs: fi + branding: icon: upload color: green From bb5e9c7198cb80529e21827c570ec57d0ab10b2c Mon Sep 17 00:00:00 2001 From: KevKibe Date: Fri, 1 Nov 2024 18:13:28 +0300 Subject: [PATCH 08/16] fix error handling in the action --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 30b0036..686948c 100644 --- a/action.yml +++ b/action.yml @@ -259,7 +259,7 @@ runs: log_message "SUCCESS: Script execution completed successfully!" break else - log_message "Kernel is still running. Rechecking in ${ { inputs.sleep_time }} seconds..." + log_message "Kernel is still running. Rechecking in "${ { inputs.sleep_time }}" seconds..." sleep "${{ inputs.sleep_time }}" fi done From cc6af7b79315a1d93393fdc1329f38d95bad2316 Mon Sep 17 00:00:00 2001 From: KevKibe Date: Fri, 1 Nov 2024 18:14:37 +0300 Subject: [PATCH 09/16] fix error handling in the action --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 686948c..aa91fea 100644 --- a/action.yml +++ b/action.yml @@ -259,7 +259,7 @@ runs: log_message "SUCCESS: Script execution completed successfully!" break else - log_message "Kernel is still running. Rechecking in "${ { inputs.sleep_time }}" seconds..." + log_message "Kernel is still running. Rechecking in "${{ inputs.sleep_time }}" seconds..." sleep "${{ inputs.sleep_time }}" fi done From 411817e4fdecff36826cfd50970f2291ec0dac1f Mon Sep 17 00:00:00 2001 From: KevKibe Date: Fri, 1 Nov 2024 18:20:07 +0300 Subject: [PATCH 10/16] fix error handling in the action --- action.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index aa91fea..a5340d6 100644 --- a/action.yml +++ b/action.yml @@ -265,16 +265,18 @@ runs: done log_file="./$kernel_slug.log" - + log_message "::group::Full log" log_message "Fetching full kernel output log for '$kernel_name':" kaggle kernels output "$kernel_name" -p . 2>&1 if [ -f "$log_file" ]; then while IFS= read -r line; do - [[ -n "$line" ]] && log_message "$line" - if echo "$line" | grep -Ei "Error|Traceback|Exception|404 Client Error|failed|FAIL"; then - log_message "::error::Error found in log: $line" + data_field=$(echo "$line" | jq -r '.data') + [[ -n "$data_field" ]] && log_message "$data_field" + + if echo "$data_field" | grep -Ei "Error|Traceback|Exception|404 Client Error|failed|FAIL"; then + log_message "::error::Error found in log: $data_field" exit 1 fi done < "$log_file" From cc7589be9b3f2be25844e69f9286c78b3342b5aa Mon Sep 17 00:00:00 2001 From: KevKibe Date: Fri, 1 Nov 2024 18:24:54 +0300 Subject: [PATCH 11/16] fix error handling in the action --- action.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index a5340d6..42997de 100644 --- a/action.yml +++ b/action.yml @@ -259,27 +259,30 @@ runs: log_message "SUCCESS: Script execution completed successfully!" break else - log_message "Kernel is still running. Rechecking in "${{ inputs.sleep_time }}" seconds..." + log_message "Kernel is still running. Rechecking in ${ { inputs.sleep_time }} seconds..." sleep "${{ inputs.sleep_time }}" fi done log_file="./$kernel_slug.log" - + log_message "::group::Full log" log_message "Fetching full kernel output log for '$kernel_name':" kaggle kernels output "$kernel_name" -p . 2>&1 if [ -f "$log_file" ]; then - while IFS= read -r line; do - data_field=$(echo "$line" | jq -r '.data') + # Process the JSON array in the log file + jq -c '.[]' "$log_file" | while IFS= read -r entry; do + # Extract the 'data' field from each JSON object + data_field=$(echo "$entry" | jq -r '.data') [[ -n "$data_field" ]] && log_message "$data_field" + # Check for errors in the extracted data field if echo "$data_field" | grep -Ei "Error|Traceback|Exception|404 Client Error|failed|FAIL"; then log_message "::error::Error found in log: $data_field" exit 1 fi - done < "$log_file" + done else log_message "Log file '$log_file' not found." fi @@ -292,6 +295,7 @@ runs: + branding: icon: upload color: green From 26519d6b0d0935ebc66a71d789ff2bd2f4f3a596 Mon Sep 17 00:00:00 2001 From: KevKibe Date: Fri, 1 Nov 2024 18:26:22 +0300 Subject: [PATCH 12/16] fix error handling in the action --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 42997de..6019c6b 100644 --- a/action.yml +++ b/action.yml @@ -259,7 +259,7 @@ runs: log_message "SUCCESS: Script execution completed successfully!" break else - log_message "Kernel is still running. Rechecking in ${ { inputs.sleep_time }} seconds..." + log_message "Kernel is still running. Rechecking in "${{ inputs.sleep_time }}" seconds..." sleep "${{ inputs.sleep_time }}" fi done From 807d5d35649c35ab6c7e5428d63de41274c4e6c9 Mon Sep 17 00:00:00 2001 From: KevKibe Date: Fri, 1 Nov 2024 18:34:43 +0300 Subject: [PATCH 13/16] refactor tests workflow files add implementation to pass the failure workflow --- ..._kaggle_action.yml => test-kaggle-script-action-failure.yml} | 0 .../{test-kaggle-action.yml => test-kaggle-script-action.yml} | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{fail_kaggle_action.yml => test-kaggle-script-action-failure.yml} (100%) rename .github/workflows/{test-kaggle-action.yml => test-kaggle-script-action.yml} (96%) diff --git a/.github/workflows/fail_kaggle_action.yml b/.github/workflows/test-kaggle-script-action-failure.yml similarity index 100% rename from .github/workflows/fail_kaggle_action.yml rename to .github/workflows/test-kaggle-script-action-failure.yml diff --git a/.github/workflows/test-kaggle-action.yml b/.github/workflows/test-kaggle-script-action.yml similarity index 96% rename from .github/workflows/test-kaggle-action.yml rename to .github/workflows/test-kaggle-script-action.yml index 5a642ff..069242c 100644 --- a/.github/workflows/test-kaggle-action.yml +++ b/.github/workflows/test-kaggle-script-action.yml @@ -4,7 +4,7 @@ on: pull_request: jobs: - test_kaggle_action: + test_kaggle_script_action: runs-on: ubuntu-latest steps: From 062df8af8d16c65a171e0eee79d24a2b1d555869 Mon Sep 17 00:00:00 2001 From: KevKibe Date: Fri, 1 Nov 2024 18:42:28 +0300 Subject: [PATCH 14/16] fix the failure workflow --- .github/workflows/test-kaggle-script-action-failure.yml | 2 +- action.yml | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/test-kaggle-script-action-failure.yml b/.github/workflows/test-kaggle-script-action-failure.yml index 4d45706..c5b0db5 100644 --- a/.github/workflows/test-kaggle-script-action-failure.yml +++ b/.github/workflows/test-kaggle-script-action-failure.yml @@ -33,4 +33,4 @@ jobs: enable_gpu: true enable_tpu: false sleep_time: 10 - + continue-on-error: true diff --git a/action.yml b/action.yml index 6019c6b..e23d1da 100644 --- a/action.yml +++ b/action.yml @@ -271,13 +271,10 @@ runs: kaggle kernels output "$kernel_name" -p . 2>&1 if [ -f "$log_file" ]; then - # Process the JSON array in the log file jq -c '.[]' "$log_file" | while IFS= read -r entry; do - # Extract the 'data' field from each JSON object data_field=$(echo "$entry" | jq -r '.data') [[ -n "$data_field" ]] && log_message "$data_field" - # Check for errors in the extracted data field if echo "$data_field" | grep -Ei "Error|Traceback|Exception|404 Client Error|failed|FAIL"; then log_message "::error::Error found in log: $data_field" exit 1 From 032a6c921087bcb70d110f7c1f9d21760f00b858 Mon Sep 17 00:00:00 2001 From: KevKibe Date: Fri, 1 Nov 2024 18:47:06 +0300 Subject: [PATCH 15/16] fix failure workflow --- .../workflows/test-kaggle-script-action-failure.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-kaggle-script-action-failure.yml b/.github/workflows/test-kaggle-script-action-failure.yml index c5b0db5..fe39b28 100644 --- a/.github/workflows/test-kaggle-script-action-failure.yml +++ b/.github/workflows/test-kaggle-script-action-failure.yml @@ -20,6 +20,7 @@ jobs: echo "KAGGLE_KEY=${KAGGLE_KEY}" >> $GITHUB_ENV - name: Test Kaggle Script Action Failure + id: kaggle_test uses: ./ with: username: ${{ secrets.KAGGLE_USERNAME }} @@ -27,10 +28,17 @@ jobs: title: "Test Kaggle Script Action Failure" custom_script: | python test.py --url "https://jsonplaceholder.typicode.com/nonexistent" - working_subdir: "tests" enable_internet: true enable_gpu: true enable_tpu: false sleep_time: 10 continue-on-error: true + + - name: Verify Workflow Outcome + if: steps.kaggle_test.outcome == 'success' + run: exit 1 + + - name: Verify Workflow Outcome (Negative Case) + if: steps.kaggle_test.outcome == 'failure' + run: exit 0 \ No newline at end of file From ab389485138e0434e591004e0a0cd90faa2986e2 Mon Sep 17 00:00:00 2001 From: KevKibe Date: Fri, 1 Nov 2024 18:49:47 +0300 Subject: [PATCH 16/16] update version in readme example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 836a37c..99df177 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ jobs: uses: actions/checkout@v3 - name: Execute Kaggle Script Action - uses: KevKibe/kaggle-script-action@v1.0.1 + uses: KevKibe/kaggle-script-action@v1.0.2 with: username: ${{ secrets.KAGGLE_USERNAME }} key: ${{ secrets.KAGGLE_KEY }} @@ -87,7 +87,7 @@ jobs: uses: actions/checkout@v3 - name: Run Bert Model Training - uses: KevKibe/kaggle-script-action@v1.0.1 + uses: KevKibe/kaggle-script-action@v1.0.2 with: username: ${{ secrets.KAGGLE_USERNAME }} key: ${{ secrets.KAGGLE_KEY }}