Skip to content

Commit

Permalink
Merge pull request #4 from LMaxence/feat/assets-check-ci
Browse files Browse the repository at this point in the history
fix: add dependabot generation script and ensure assets generation
  • Loading branch information
LMaxence authored Aug 23, 2024
2 parents 1861e4c + 6b84ba3 commit fc94098
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,63 +18,63 @@ updates:
prefix: "deps"
open-pull-requests-limit: 1
- package-ecosystem: "gomod"
directory: "./packages/configuration"
directory: "./packages/cli"
schedule:
interval: "weekly"
commit-message:
prefix: "deps"
open-pull-requests-limit: 1
- package-ecosystem: "gomod"
directory: "./packages/hooks-scripts"
directory: "./packages/configuration"
schedule:
interval: "weekly"
commit-message:
prefix: "deps"
open-pull-requests-limit: 1
- package-ecosystem: "gomod"
directory: "./packages/scheduler"
directory: "./packages/executor"
schedule:
interval: "weekly"
commit-message:
prefix: "deps"
open-pull-requests-limit: 1
- package-ecosystem: "gomod"
directory: "./packages/meta"
directory: "./packages/git-client"
schedule:
interval: "weekly"
commit-message:
prefix: "deps"
open-pull-requests-limit: 1
- package-ecosystem: "gomod"
directory: "./packages/cli"
directory: "./packages/hooks-scripts"
schedule:
interval: "weekly"
commit-message:
prefix: "deps"
open-pull-requests-limit: 1
- package-ecosystem: "gomod"
directory: "./packages/test-helpers"
directory: "./packages/logging"
schedule:
interval: "weekly"
commit-message:
prefix: "deps"
open-pull-requests-limit: 1
- package-ecosystem: "gomod"
directory: "./packages/executor"
directory: "./packages/meta"
schedule:
interval: "weekly"
commit-message:
prefix: "deps"
open-pull-requests-limit: 1
- package-ecosystem: "gomod"
directory: "./packages/git-client"
directory: "./packages/scheduler"
schedule:
interval: "weekly"
commit-message:
prefix: "deps"
open-pull-requests-limit: 1
- package-ecosystem: "gomod"
directory: "./packages/logging"
directory: "./packages/test-helpers"
schedule:
interval: "weekly"
commit-message:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/check-assets-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI Assets Synchronization

on:
pull_request:

env:
GO_VERSION: 1.22.4

jobs:
check-format:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Golang
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Run check-format script
run: make assets
- name: Assert no changes
run: git diff HEAD --exit-code

2 changes: 1 addition & 1 deletion scripts/generate-dependabot-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ updates:
EOL

# Find all directories containing go.work files and append to dependabot.yml
find "$ROOT_DIR" -name "go.mod" -exec dirname {} \; | while read -r dir; do
find "$ROOT_DIR" -name "go.mod" -exec dirname {} \; | sort | while read -r dir; do
cat <<EOL >> "$OUTPUT_FILE"
- package-ecosystem: "gomod"
directory: "$dir"
Expand Down

0 comments on commit fc94098

Please sign in to comment.