doc: Updated platform security scan documentation #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" --body "Includes artifact(s) from Azure DevOps Pipeline build [$buildId](https://dfe-ssp.visualstudio.com/s198-DfE-Benchmarking-service/_build/results?buildId=$buildId)" | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |