Skip to content

rmgr documentation updated by GitLab CI #209

rmgr documentation updated by GitLab CI

rmgr documentation updated by GitLab CI #209

name: Create pull request for updated datasheets
on:
push:
branches:
- "autoupdate-datasheets"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build the site in the jekyll/builder container
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod 777 /srv/jekyll && jekyll build --future"
- name: Create PR using REST API
run: |
curl --request POST \
--url https://api.github.com/repos/${{ github.repository }}/pulls \
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
--header 'content-type: application/json' \
--data '{
"title": "Auto-update datasheets",
"body": "Created by GitHub Action",
"head": "autoupdate-datasheets",
"base": "master"
}'