From 9070fa95aa1eaae3b79f4abdf6d0982dc3bdd72d Mon Sep 17 00:00:00 2001 From: Tharinda Dilshan Piyadasa <43146932+TharindaDilshan@users.noreply.github.com> Date: Mon, 23 Nov 2020 12:12:26 +0530 Subject: [PATCH 1/3] Add workflow to trigger stdlib dependency update --- .github/workflows/stdlib-workflow-trigger.yml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/stdlib-workflow-trigger.yml diff --git a/.github/workflows/stdlib-workflow-trigger.yml b/.github/workflows/stdlib-workflow-trigger.yml new file mode 100644 index 00000000..24ed730f --- /dev/null +++ b/.github/workflows/stdlib-workflow-trigger.yml @@ -0,0 +1,23 @@ +name: Stdlib dependency update + +on: + workflow_dispatch: + push: + paths: + - 'build.gradle' + - 'gradle.properties' + +jobs: + trigger-workflow: + runs-on: ubuntu-latest + if: github.repository_owner == 'ballerina-platform' + steps: + - name: Initiating repository event + run: | + curl -u ${{ secrets.BALLERINA_BOT_USERNAME }} -X POST \ + https://api.github.com/repos/ballerina-platform/ballerina-standard-library/dispatches \ + -H 'Accept: application/vnd.github.v3+json' \ + -H 'Authorization: token ${{ secrets.BALLERINA_BOT_TOKEN }}' \ + --data '{ + "event_type": "dependency-update" + }' From 0e1e121d4e1e27010045db3b091bc14de245ea1b Mon Sep 17 00:00:00 2001 From: Tharinda Dilshan Piyadasa <43146932+TharindaDilshan@users.noreply.github.com> Date: Mon, 23 Nov 2020 14:56:21 +0530 Subject: [PATCH 2/3] Remove workflow dispatch --- .github/workflows/stdlib-workflow-trigger.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/stdlib-workflow-trigger.yml b/.github/workflows/stdlib-workflow-trigger.yml index 24ed730f..3b14ede8 100644 --- a/.github/workflows/stdlib-workflow-trigger.yml +++ b/.github/workflows/stdlib-workflow-trigger.yml @@ -1,7 +1,6 @@ name: Stdlib dependency update on: - workflow_dispatch: push: paths: - 'build.gradle' From 50d7eb24c01e1d340953fb1adf9577fc782650d1 Mon Sep 17 00:00:00 2001 From: Tharinda Dilshan Piyadasa <43146932+TharindaDilshan@users.noreply.github.com> Date: Mon, 23 Nov 2020 16:38:22 +0530 Subject: [PATCH 3/3] Represent workflow name in Title Case --- .github/workflows/stdlib-workflow-trigger.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stdlib-workflow-trigger.yml b/.github/workflows/stdlib-workflow-trigger.yml index 3b14ede8..638c2a24 100644 --- a/.github/workflows/stdlib-workflow-trigger.yml +++ b/.github/workflows/stdlib-workflow-trigger.yml @@ -1,4 +1,4 @@ -name: Stdlib dependency update +name: Stdlib Dependency Update on: push: