Skip to content

Merge pull request #57 from near/june27_updates #1

Merge pull request #57 from near/june27_updates

Merge pull request #57 from near/june27_updates #1

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: gh pr create -B base_branch -H branch_to_merge -m 'auto-update URL paths in response to marketing content update'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}