2020-07-08 00:02:18 +00:00
|
|
|
name: PublishDockerImage
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
|
|
|
|
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'
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: '12'
|
|
|
|
- run: node ./node-red/.github/scripts/update-node-red-docker.js
|
|
|
|
id: updateFiles
|
|
|
|
- name: Create 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-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-08 00:02:18 +00:00
|
|
|
This PR was auto-generated by a GitHub Action. Any questions, speak to @knolleary
|