Skip to content

Update README.md

Update README.md #19

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: Conditional Commit
if: steps.check_diff.outputs.changed == 'true'
run: |
echo "Preparing a commit."
git config --local user.email "devconsole-team@pagoda.co"
git config --local user.name "github-actions-bot"
git remote set-url origin https://${{ secrets.REPO_TOKEN }}@github.com/near/nearorg_wordpress_marketing.git/
git commit -m "auto-update URL paths in response to marketing content update" -a
git push