2021-06-29 13:19:24 +00:00
|
|
|
name: Publish Release
|
2021-01-07 10:09:49 +00:00
|
|
|
env:
|
|
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
2020-07-08 00:02:18 +00:00
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
|
2022-10-02 18:16:13 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-07-08 00:02:18 +00:00
|
|
|
jobs:
|
|
|
|
generate:
|
|
|
|
name: 'Update node-red-docker image'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out node-red repository
|
2023-09-05 11:50:59 +00:00
|
|
|
uses: actions/checkout@v4
|
2020-07-08 00:02:18 +00:00
|
|
|
with:
|
|
|
|
path: 'node-red'
|
|
|
|
- name: Check out node-red-docker repository
|
2023-09-05 11:50:59 +00:00
|
|
|
uses: actions/checkout@v4
|
2020-07-08 00:02:18 +00:00
|
|
|
with:
|
|
|
|
repository: 'node-red/node-red-docker'
|
|
|
|
path: 'node-red-docker'
|
2020-07-10 20:46:00 +00:00
|
|
|
- name: Check out node-red.github.io repository
|
2023-09-05 11:50:59 +00:00
|
|
|
uses: actions/checkout@v4
|
2020-07-10 20:46:00 +00:00
|
|
|
with:
|
|
|
|
repository: 'node-red/node-red.github.io'
|
|
|
|
path: 'node-red.github.io'
|
2023-11-01 07:42:43 +00:00
|
|
|
- uses: actions/setup-node@v4
|
2020-07-08 00:02:18 +00:00
|
|
|
with:
|
2022-05-03 13:25:27 +00:00
|
|
|
node-version: '16'
|
2020-07-08 00:02:18 +00:00
|
|
|
- run: node ./node-red/.github/scripts/update-node-red-docker.js
|
2020-07-10 20:46:00 +00:00
|
|
|
- name: Create Docker Pull Request
|
2024-02-01 07:29:17 +00:00
|
|
|
uses: peter-evans/create-pull-request@v6
|
2020-07-08 00:02:18 +00:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.NR_REPO_TOKEN }}
|
|
|
|
committer: GitHub <noreply@github.com>
|
|
|
|
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
|
|
|
path: 'node-red-docker'
|
2020-07-08 00:13:14 +00:00
|
|
|
commit-message: 'Bump to ${{ env.newVersion }}'
|
|
|
|
title: '🚀 Update to Node-RED ${{ env.newVersion }} release'
|
2020-07-08 00:02:18 +00:00
|
|
|
body: |
|
|
|
|
Updates the Node-RED Docker repo for the ${{ env.newVersion }} release.
|
|
|
|
|
2020-07-08 00:13:14 +00:00
|
|
|
Once this is merged, you will need to create a new release with the tag `v${{ env.newVersion }}`.
|
|
|
|
|
2020-07-10 20:46:00 +00:00
|
|
|
This PR was auto-generated by a GitHub Action. Any questions, speak to @knolleary
|
|
|
|
- run: node ./node-red/.github/scripts/update-node-red-website.js
|
|
|
|
- name: Create Website Pull Request
|
2024-02-01 07:29:17 +00:00
|
|
|
uses: peter-evans/create-pull-request@v6
|
2020-07-10 20:46:00 +00:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.NR_REPO_TOKEN }}
|
|
|
|
committer: GitHub <noreply@github.com>
|
|
|
|
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
|
|
|
path: 'node-red.github.io'
|
|
|
|
commit-message: 'Bump to ${{ env.newVersion }}'
|
|
|
|
title: '🚀 Update to Node-RED ${{ env.newVersion }} release'
|
|
|
|
body: |
|
|
|
|
Updates the Node-RED Website repo for the ${{ env.newVersion }} release.
|
|
|
|
|
2020-07-08 00:02:18 +00:00
|
|
|
This PR was auto-generated by a GitHub Action. Any questions, speak to @knolleary
|