Skip to content

Resources: New palettes of Brussels #1886

Resources: New palettes of Brussels

Resources: New palettes of Brussels #1886

Workflow file for this run

name: Issue bot
on:
issues:
types: [opened, edited]
jobs:
updateCities:
runs-on: ubuntu-latest
if: contains(github.event.issue.body, 'Do not edit lines below, they are meant for bots only!!!') && !contains(github.event.issue.body, 'REPLACE ME')
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.RMG_BUILD_AND_RELEASE }}
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm ci
working-directory: ./package
- name: Update and push
run: ./scripts/issuebot.sh
shell: bash
env:
ISSUE_BODY: ${{ github.event.issue.body }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_TITLE: ${{ github.event.issue.title }}
USER_LOGIN: ${{ github.event.issue.user.login }}
USER_ID: ${{ github.event.issue.user.id }}
id: bot
- name: pull-request-action
uses: vsoch/pull-request-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH_PREFIX: "bot-"
PULL_REQUEST_FROM_BRANCH: bot-${{ github.event.issue.number }}
PULL_REQUEST_BRANCH: "main"
PULL_REQUEST_TOKEN: ${{ secrets.RMT_SVC }}
PULL_REQUEST_TITLE: ${{ github.event.issue.title }}
PULL_REQUEST_BODY: "Hi, I'm the rmg bot updating ${{ github.event.issue.title }} on behalf of ${{ github.event.issue.user.login }}.\nThis should fix #${{ github.event.issue.number }}\n${{ steps.bot.outputs.COLOURS }}"