Skip to content

Commit

Permalink
Add workflow to trigger build
Browse files Browse the repository at this point in the history
(cherry picked from commit 674531c)
  • Loading branch information
acogoluegnes committed Nov 29, 2023
1 parent f20967a commit 1bf09e0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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"
21 changes: 21 additions & 0 deletions .github/workflows/trigger-build.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 1bf09e0

Please sign in to comment.