Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(autoupdate): try to bump dependencies every monday #50

Merged
merged 2 commits into from
Oct 20, 2023
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
23 changes: 23 additions & 0 deletions .github/workflows/dependencies-autoupdate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Dependencies Auto-Update
on:
schedule:
- cron: "0 0 * * 1" # Every Monday at midnight (UTC)
workflow_dispatch:
permissions:
contents: write
pull-requests: write
concurrency:
group: dependencies-autoupdate
cancel-in-progress: true
jobs:
autoupdate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: make autoupdate
shell: bash
- uses: peter-evans/create-pull-request@v5
with:
title: "feat: bump dependencies"
branch: dependencies-autoupdate
reviewers: rlespinasse
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,12 @@ test-ci-setup:
test-ci:
@mkdir -p tests/output
@DOCKER_IMAGE=$(DOCKER_IMAGE) npx bats -r tests

autoupdate:
$(MAKE) autoupdate-drawio-desktop

autoupdate-drawio-desktop:
$(eval DRAWIO_DESKTOP_RELEASE := $(shell gh release list --repo jgraph/drawio-desktop | grep "Latest" | cut -f1))
sed -i 's/DRAWIO_VERSION=.*/DRAWIO_VERSION="$(DRAWIO_DESKTOP_RELEASE)"/' Dockerfile
sed -i 's/Draw\.io Desktop v.*/Draw.io Desktop v$(DRAWIO_DESKTOP_RELEASE)/' README.adoc

2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
= Draw.io Desktop Headless docker image

Dockerized headless version of https://github.com/jgraph/drawio-desktop[Draw.io Desktop '21.8.2']
Dockerized headless version of https://github.com/jgraph/drawio-desktop[Draw.io Desktop v21.8.2]

== What it does

Expand Down