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
44 changes: 44 additions & 0 deletions .github/workflows/patch-dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Update dist on Dependabot PRs

on:
pull_request:
types: [opened, synchronize]
branches: [main]

jobs:
build-and-commit:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Install dependencies
run: npm ci

- name: Build package
run: npm run package

- name: Commit dist changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add dist
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "Update dist after Dependabot update"
git push
fi
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ Not available.

## Known Limitations

This action is very slow, especially on Windows, see issue [#36][issue-36-link].
This action can be slow, especially on Windows, see issue [#36][issue-36-link].

- Macos runners are not supported, because OpenModelica discontinued the Mac
builds after version 1.16. It should be possible to build/install latest
OpenModelica nightly for macOS, see [this README][macos-readme]:.
Expand All @@ -151,8 +152,8 @@ The tests will install all sorts of OpenModelica versions and tools. To prevent
the installer from messing with your host system use the provided dockerfile or
dev-container:

- Linux: [.devcontainer/devcontainer.json](.devcontainer/devcontainer.json)
- Windows: [.ci/dockerfile](.ci/dockerfile)
- Linux: [.devcontainer/devcontainer.json](.devcontainer/devcontainer.json)
- Windows: [.ci/dockerfile](.ci/dockerfile)

To build and test run:

Expand Down