Skip to content

chore: create the fix path branch #7

chore: create the fix path branch

chore: create the fix path branch #7

Workflow file for this run

on:
push:
branches: [develop]
permissions:
contents: write
jobs:
fix-paths:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: script
shell: bash
run: ./bin/replace_all.sh
- name: Check the diff
id: check_diff
run: |
git diff --quiet . || echo "changed=true" >> $GITHUB_OUTPUT
- name: Log next steps
if: steps.check_diff.outputs.changed != 'true'
run: |
echo "Workflow detected that no changes are needed."
- name: create pull request
if: steps.check_diff.outputs.changed == 'true'
run: |
git branch url-update
git checkout url-update
gh pr create -B develop -H url-update --fill -m 'build: auto-update URL paths in response to marketing content update. Before merging Test /blog/page/2'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}