Skip to content

doc: Updated web security scan documentation #7

doc: Updated web security scan documentation

doc: Updated web security scan documentation #7

name: Pull Request on documentation tag
on:
push:
tags:
- "doc/**"
jobs:
create-pull-request:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get Branch
run: |
raw=$(git branch -r --contains ${{ github.ref }})
branch=$(echo $raw | cut -c 8-)
echo "BRANCH=$branch" >> $GITHUB_ENV
echo "Branch is $branch"
- name: Create Pull Request
run: |
buildId=$(echo "${{ github.ref }}" | cut -c 15-)
gh pr create -B main -H ${{ env.BRANCH }} --title "Updated documentation from build $buildId artifacts" --body "Includes artifact(s) from Azure DevOps Pipeline build [$buildId](https://dfe-ssp.visualstudio.com/s198-DfE-Benchmarking-service/_build/results?buildId=$buildId)" --label "documentation"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}