From 1bf09e0d87bdd42a50efe0dedfe7ed4ee482a56d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20Cogolu=C3=A8gnes?= Date: Wed, 29 Nov 2023 17:49:19 +0100 Subject: [PATCH] Add workflow to trigger build (cherry picked from commit 674531cc8061a9fd84e3c99ece1573c892987070) --- .github/dependabot.yml | 9 +++++++++ .github/workflows/trigger-build.yml | 21 +++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/trigger-build.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..2f72818 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,9 @@ +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + target-branch: "main" diff --git a/.github/workflows/trigger-build.yml b/.github/workflows/trigger-build.yml new file mode 100644 index 0000000..5fc6689 --- /dev/null +++ b/.github/workflows/trigger-build.yml @@ -0,0 +1,21 @@ +name: Trigger build + +on: + push: + workflow_dispatch: + +jobs: + trigger-build: + runs-on: ubuntu-22.04 + steps: + - name: Extract Erlang major version + run: | + major=$(echo "${{ github.ref_name }}" | cut -d "-" -f 2) + echo $major + echo "erlang_major=$major" >> $GITHUB_ENV + - name: Trigger build + uses: peter-evans/repository-dispatch@v2 + with: + repository: rabbitmq/erlang-packages + token: ${{ secrets.CI_GITHUB_TOKEN }} + event-type: rpm_erlang_${{ env.erlang_major }}