Skip to content

update(JS): web/javascript/reference/global_objects/json/stringify #51

update(JS): web/javascript/reference/global_objects/json/stringify

update(JS): web/javascript/reference/global_objects/json/stringify #51

Workflow file for this run

jobs:
pull-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Fetch master
run: git fetch origin master
# Check if PR already exists
- env:
GH_TOKEN: ${{ secrets.CONTENT_GITHUB_TOKEN }}
id: check-if-pr-exists
name: Check if PR exists
run: |
gh pr list --state open --base master --head ${GITHUB_REF#refs/heads/} | grep -q "No open pull requests"
if [ $? -eq 0 ]; then
echo "No open pull requests"
echo "skip=false" >> "$GITHUB_OUTPUT"
else
echo "Open pull requests"
echo "skip=true" >> "$GITHUB_OUTPUT"
fi
- env:
GH_TOKEN: ${{ secrets.CONTENT_GITHUB_TOKEN }}
if: steps.check-if-pr-exists.outputs.skip != 'true'
name: Create Pull Request
# Creates a PR from current branch to master
run: |
gh pr create --base master --head ${GITHUB_REF#refs/heads/} --fill
name: Create Pull Request
on:
push:
branches:
- "translation/*"
- "update/*"