Merge pull request #57 from near/june27_updates #1
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
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 }} |