From 5f93f7377e78a210cca6c212165976eac7da6d5c Mon Sep 17 00:00:00 2001 From: A7ak <51486750+A7ak@users.noreply.github.com> Date: Mon, 23 Sep 2024 22:12:06 +0530 Subject: [PATCH 1/2] updated version code to 2 --- app/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index c67f908..6a5ac67 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -11,7 +11,7 @@ android { applicationId = "com.example.githublabels" minSdk = 24 targetSdk = 34 - versionCode = 1 + versionCode = 2 versionName = "1.0" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" From a1715ae28df055b20acfe19e49089dfed5947b44 Mon Sep 17 00:00:00 2001 From: A7ak <51486750+A7ak@users.noreply.github.com> Date: Mon, 23 Sep 2024 22:21:32 +0530 Subject: [PATCH 2/2] pipeline fixes --- .github/workflows/label_pipeline.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/label_pipeline.yml b/.github/workflows/label_pipeline.yml index 0c97e43..5b32913 100644 --- a/.github/workflows/label_pipeline.yml +++ b/.github/workflows/label_pipeline.yml @@ -12,7 +12,9 @@ jobs: id: check_label run: | echo "Checking labels for trigger..." - if [[ "${{ toJSON(github.event.pull_request.labels) }}" == *"trigger-pipeline"* ]]; then + labels=$(echo '${{ toJSON(github.event.pull_request.labels) }}' | jq -r '.[].name') + echo "Labels: $labels" + if echo "$labels" | grep -q "trigger-pipeline"; then echo "Trigger label found." else echo "No trigger label found. Exiting." @@ -22,4 +24,4 @@ jobs: if: success() run: | echo "Pipeline triggered by label!" - # Add the commands for your pipeline steps here + # Add your pipeline steps here