From 5c5a52d69ab75f77cb316cf38d6a356e5e6395d3 Mon Sep 17 00:00:00 2001 From: Thomas Bouffard <27200110+tbouffard@users.noreply.github.com> Date: Fri, 30 Aug 2024 09:49:27 +0200 Subject: [PATCH 1/4] ci: fix notification workflows used during releases --- .github/workflows/notify-new-version-available-on-npm.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/notify-new-version-available-on-npm.yml b/.github/workflows/notify-new-version-available-on-npm.yml index b6c5e7e8a3..1059637cda 100644 --- a/.github/workflows/notify-new-version-available-on-npm.yml +++ b/.github/workflows/notify-new-version-available-on-npm.yml @@ -20,6 +20,11 @@ jobs: repository: - bpmn-visualization-R' steps: + # TODO log version and event as json + # Need to checkout to access to the internal action + - uses: actions/checkout@v4 + with: + ref: v${{ env.VERSION }} - name: Notify that a new bpmn-visualization version is available uses: ./.github/actions/notify-PA-repo-of-new-version with: From de016507ab6cb80eb6033ced41819284b24ff037 Mon Sep 17 00:00:00 2001 From: Thomas Bouffard <27200110+tbouffard@users.noreply.github.com> Date: Fri, 30 Aug 2024 10:57:08 +0200 Subject: [PATCH 2/4] fix event creation in publish-npm.yml --- .github/workflows/publish-npm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 48747a2774..724049363c 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -23,7 +23,7 @@ jobs: with: # use the default GITHUB_TOKEN, this is possible because we are dispatching the same repository event-type: new_version_available_on_npm - client-payload: '{ "version": "${{ inputs.version }}" }' + client-payload: "{ version: ${{ inputs.version }} }" - name: Send message to Slack channel if: success() uses: slackapi/slack-github-action@v1.26.0 From 35b6dfc657dfbc4f796ea220dd75c46df73c1b55 Mon Sep 17 00:00:00 2001 From: Thomas Bouffard <27200110+tbouffard@users.noreply.github.com> Date: Fri, 30 Aug 2024 11:04:43 +0200 Subject: [PATCH 3/4] notify-new-version-available-on-npm.yml: checkout the current branch --- .github/workflows/notify-new-version-available-on-npm.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/notify-new-version-available-on-npm.yml b/.github/workflows/notify-new-version-available-on-npm.yml index 1059637cda..2a384d0496 100644 --- a/.github/workflows/notify-new-version-available-on-npm.yml +++ b/.github/workflows/notify-new-version-available-on-npm.yml @@ -20,11 +20,8 @@ jobs: repository: - bpmn-visualization-R' steps: - # TODO log version and event as json # Need to checkout to access to the internal action - uses: actions/checkout@v4 - with: - ref: v${{ env.VERSION }} - name: Notify that a new bpmn-visualization version is available uses: ./.github/actions/notify-PA-repo-of-new-version with: From 974e1a6900a0135ef91b70bdc5749f9b4682b5be Mon Sep 17 00:00:00 2001 From: Thomas Bouffard <27200110+tbouffard@users.noreply.github.com> Date: Fri, 30 Aug 2024 12:10:47 +0200 Subject: [PATCH 4/4] notify-new-version-available-on-npm.yml: fix repository --- .github/workflows/notify-new-version-available-on-npm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/notify-new-version-available-on-npm.yml b/.github/workflows/notify-new-version-available-on-npm.yml index 2a384d0496..b359a24d00 100644 --- a/.github/workflows/notify-new-version-available-on-npm.yml +++ b/.github/workflows/notify-new-version-available-on-npm.yml @@ -18,7 +18,7 @@ jobs: strategy: matrix: repository: - - bpmn-visualization-R' + - bpmn-visualization-R steps: # Need to checkout to access to the internal action - uses: actions/checkout@v4