mirror of
https://github.com/soberhacker/obsidian-telegram-sync.git
synced 2026-07-22 07:50:31 +00:00
chore: add automerge PR main > develop
This commit is contained in:
parent
d3ff9de390
commit
3ffd07be9f
2 changed files with 54 additions and 2 deletions
52
.github/workflows/update-develop.yml
vendored
Normal file
52
.github/workflows/update-develop.yml
vendored
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
name: Auto PR from main to develop
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
update-develop:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Print github
|
||||
run: echo '${{ toJson(github) }}'
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Create Pull Request
|
||||
id: cpr
|
||||
uses: peter-evans/create-pull-request@v5
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
commit-message: Merge main into develop
|
||||
branch: auto-pr/merge-main-to-develop
|
||||
delete-branch: true
|
||||
title: Merge main into develop
|
||||
body: Merge main into develop
|
||||
base: develop
|
||||
labels: automerge
|
||||
|
||||
- name: Check outputs
|
||||
if: ${{ steps.cpr.outputs.pull-request-number }}
|
||||
run: |
|
||||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
||||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
|
||||
|
||||
- name: Merge PR
|
||||
if: ${{steps.cpr.outputs.pull-request-number}}
|
||||
uses: pascalgn/automerge-action@v0.15.6
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
MERGE_REMOVE_LABELS: automerge
|
||||
MERGE_METHOD: merge
|
||||
MERGE_COMMIT_MESSAGE: pull-request-title
|
||||
MERGE_FORKS: false
|
||||
PULL_REQUEST: ${{ steps.cpr.outputs.pull-request-number }}
|
||||
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
export const version = "1.7.0";
|
||||
export const version = "1.7.1";
|
||||
// TODO in github actions creating an archive with 3 main files for easy installing
|
||||
// TODO Add Demo gif and screenshots to readme.md
|
||||
// ## Demo
|
||||
//<br>
|
||||
export const showInTelegram = true;
|
||||
export const showInTelegram = false;
|
||||
export const newFeatures = `
|
||||
- add note template variables:
|
||||
{{chat}} - link to the chat (bot / group / channel)
|
||||
|
|
|
|||
Loading…
Reference in a new issue