Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci-saas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: CI (SaaS)

on:
push:
workflow_dispatch:

permissions:
contents: read
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/dependabot-sync-saas-lockfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

permissions:
contents: write
actions: write

jobs:
sync:
Expand All @@ -24,12 +25,16 @@ jobs:
- name: Forward Gemfile.lock changes to Gemfile.saas.lock
run: bin/bundle-drift forward

- name: Commit updated lockfile
# Pushes made with GITHUB_TOKEN don't trigger push workflows, so start CI on the new commit explicitly.
- name: Commit updated lockfile and run CI
env:
GH_TOKEN: ${{ github.token }}
run: |
git add Gemfile.saas.lock
if ! git diff --cached --quiet; then
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git commit -m "Sync Gemfile.saas.lock"
git push
gh workflow run ci-saas.yml --ref "$GITHUB_REF_NAME"
fi
Loading