Skip to content

Commit

Permalink
ci(autoupdate): try to bump dependencies every monday
Browse files Browse the repository at this point in the history
  • Loading branch information
rlespinasse authored Oct 20, 2023
1 parent b618492 commit 7ad4f35
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
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

0 comments on commit 7ad4f35

Please sign in to comment.