-
-
Notifications
You must be signed in to change notification settings - Fork 9
52 lines (49 loc) · 1.89 KB
/
updateNotification.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Create update-notification to all installed builds
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
on:
release:
types:
- edited
- published
jobs:
build-tasks:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Print GitHub context
uses: actions/github-script@v7
with:
script: |
console.log(JSON.stringify(github, null, 2))
- name: GitHub REF
id: github_context_step
run: |
echo "$GITHUB_REF repo=${{github.event.repository.full_name}}"
- uses: actions/checkout@v4
with:
ref: main
- uses: actions/github-script@v7
name: Update docs folder with tauri update jsons
with:
script: |
const { default: printStuff }
= await import('${{ github.workspace }}/.github/workflows/updateNotification.js');
await printStuff({github, context, githubWorkspaceRoot: '${{ github.workspace }}'});
- name: Create update notification Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
with:
commit-message: 'ci: tauri release update notification json'
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: '[Release BOT] Update release notification as part of new release ${{ github.ref_name }}'
add-paths: |
docs/tauri/**
docs/install.json
body: |
Update release notification as part of new release. Once this Pull request is merges
in main branch, please merge it into `update-notifications` branch to trigger update rollout
to the full install base after testing.
- Auto-generated by `updateNotification.yml` action