Following template update #85
Mara-Li
announced in
Announcements
Replies: 1 comment
-
I created, following this creation, a GitHub action that will create a PR each 24h, taking the last release of the repo. name: Get lastest release from template
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
env:
AUTO_MERGE: false # set to true to enable auto merging
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get release from template
uses: robinraju/release-downloader@main
with:
latest: true
fileName: "changed_files.zip"
repository: "ObsidianPublisher/follow_template"
- name: Unzip changed files
run: |
unzip -o changed_files.zip
rm changed_files.zip
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update from template
title: "[BUMP] Update from template"
body: |
files changed:
```
$(git diff --name-only HEAD^ HEAD)
```
labels: |
update
branch: update_repo
delete-branch: true
- name: AutoMerging
if: steps.cpr.outputs.pull-request-operation == 'created' && env.AUTO_MERGE == 'true'
uses: peter-evans/enable-pull-request-automerge@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
merge-method: squash |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I created a new repository : Follow Template.
This repository is intended to help to track the update I do on the two repos.
Only the file that allow the template to work as intended are present, plus the mkdocs.yml where I adjust the plugin.
Normally the release will contains only the edited file (in a zip) plus the mkdocs.yml, the license and the readme.
Please, follow the repo to track the release & fix !
Beta Was this translation helpful? Give feedback.
All reactions