diff --git a/.github/workflows/dependencies-autoupdate.yaml b/.github/workflows/dependencies-autoupdate.yaml new file mode 100644 index 0000000..f2e31d6 --- /dev/null +++ b/.github/workflows/dependencies-autoupdate.yaml @@ -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 diff --git a/Makefile b/Makefile index aceefc2..9d9c014 100644 --- a/Makefile +++ b/Makefile @@ -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 + diff --git a/README.adoc b/README.adoc index f3a6a92..0553039 100644 --- a/README.adoc +++ b/README.adoc @@ -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