diff --git a/.github/workflows/update-develop.yml b/.github/workflows/update-develop.yml new file mode 100644 index 0000000..2368148 --- /dev/null +++ b/.github/workflows/update-develop.yml @@ -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 }} + \ No newline at end of file diff --git a/release-notes.mjs b/release-notes.mjs index fc66e5b..9932132 100644 --- a/release-notes.mjs +++ b/release-notes.mjs @@ -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 //![](https://raw.githubusercontent.com/vslinko/obsidian-outliner/main/demos/demo1.gif)
-export const showInTelegram = true; +export const showInTelegram = false; export const newFeatures = ` - add note template variables: {{chat}} - link to the chat (bot / group / channel)