2021-06-29 15:19:24 +02:00
|
|
|
name: Publish Release
|
2021-01-07 11:09:49 +01:00
|
|
|
env:
|
|
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
2020-07-08 02:02:18 +02:00
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
|
2022-10-02 20:16:13 +02:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-07-08 02:02:18 +02:00
|
|
|
jobs:
|
|
|
|
generate:
|
|
|
|
name: 'Update node-red-docker image'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out node-red repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
path: 'node-red'
|
|
|
|
- name: Check out node-red-docker repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
repository: 'node-red/node-red-docker'
|
|
|
|
path: 'node-red-docker'
|
2020-07-10 22:46:00 +02:00
|
|
|
- name: Check out node-red.github.io repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
repository: 'node-red/node-red.github.io'
|
|
|
|
path: 'node-red.github.io'
|
2020-07-08 02:02:18 +02:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2023-09-04 17:06:32 +02:00
|
|
|
node-version: '18'
|
2020-07-08 02:02:18 +02:00
|
|
|
- run: node ./node-red/.github/scripts/update-node-red-docker.js
|
2020-07-10 22:46:00 +02:00
|
|
|
- name: Create Docker Pull Request
|
2020-07-08 02:02:18 +02:00
|
|
|
uses: peter-evans/create-pull-request@v2
|
|
|
|
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 02:13:14 +02:00
|
|
|
commit-message: 'Bump to ${{ env.newVersion }}'
|
|
|
|
title: '🚀 Update to Node-RED ${{ env.newVersion }} release'
|
2020-07-08 02:02:18 +02:00
|
|
|
body: |
|
|
|
|
Updates the Node-RED Docker repo for the ${{ env.newVersion }} release.
|
|
|
|
|
2020-07-08 02:13:14 +02:00
|
|
|
Once this is merged, you will need to create a new release with the tag `v${{ env.newVersion }}`.
|
|
|
|
|
2020-07-10 22:46:00 +02: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
|
|
|
|
uses: peter-evans/create-pull-request@v2
|
|
|
|
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 02:02:18 +02:00
|
|
|
This PR was auto-generated by a GitHub Action. Any questions, speak to @knolleary
|