-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
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: Dump GitHub context | ||
id: github_context_step | ||
run: | | ||
echo '${{ toJSON(github) }}' | ||
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/** | ||
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 |