Skip to content

Lint a random file #1759

Lint a random file

Lint a random file #1759

Workflow file for this run

name: Create issues for Merge Request
# Run this action when we merge into master
on:
pull_request:
branches:
- master
- 'feature/**'
- 'release_**'
types: [closed]
jobs:
# Create an issue on the documentation repository to document whatever was just pulled in.
create-doc-issue:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
env:
PR_NUM: ${{ github.event.pull_request.number }}
TITLE: ${{ github.event.pull_request.title }}
steps:
- name: Create an issue on the documentation repository
if: contains(github.event.pull_request.labels.*.name, 'needs doc')
run: |
BODY="{
\"title\": \"$TITLE\",
\"body\": \"Create documentation for https://github.com/OSC/ondemand/pull/$PR_NUM\"
}"
curl --silent --output /dev/null --request POST \
--url https://api.github.com/repos/OSC/ood-documentation/issues \
--header 'Authorization: token ${{ secrets.OSC_ROBOT_GH_PUB_REPO_TOKEN }}' \
--header 'content-type: application/json' \
--data "$BODY"
- name: Create an issue on the puppet repository
if: contains(github.event.pull_request.labels.*.name, 'needs automation')
run: |
BODY="{
\"title\": \"$TITLE\",
\"body\": \"Create automation for https://github.com/OSC/ondemand/pull/$PR_NUM\"
}"
curl --silent --output /dev/null --request POST \
--url https://api.github.com/repos/OSC/puppet-module-openondemand/issues \
--header 'Authorization: token ${{ secrets.OSC_ROBOT_GH_PUB_REPO_TOKEN }}' \
--header 'content-type: application/json' \
--data "$BODY"
- name: Create an issue on the ansible repository
if: contains(github.event.pull_request.labels.*.name, 'needs automation')
run: |
BODY="{
\"title\": \"$TITLE\",
\"body\": \"Create automation for https://github.com/OSC/ondemand/pull/$PR_NUM\"
}"
curl --silent --output /dev/null --request POST \
--url https://api.github.com/repos/OSC/ood-ansible/issues \
--header 'Authorization: token ${{ secrets.OSC_ROBOT_GH_PUB_REPO_TOKEN }}' \
--header 'content-type: application/json' \
--data "$BODY"