Skip to content

Commit

Permalink
fix: dispatch trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
apham0001 committed Dec 10, 2024
1 parent 9a61af5 commit e138d74
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/dispatch-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,8 @@ jobs:

- name: Update docs to new version
run: |
TAG_NAME="$(echo "${TAG_NAME}" | sed 's/^v//')"
# Update docs to use the new version
sed -i -E "s/v\.?[0-9]+\.[0-9]+\.[0-9]+[a-zA-Z0-9\-]*/v${TAG_NAME}/g" \
docs/advanced/quickstart-split.md \
docs/advanced/test-command.md \
docs/advanced/quickstart-combine.md \
docs/charon/charon-cli-reference.md \
docs/faq/errors.mdx \
docs/start/quickstart_group.mdx \
docs/start/quickstart_alone.mdx
#install dependencies
yarn
# Update version with yarn
yarn run version v${TAG_NAME}
LATEST_VERSION=$(jq -r '.[0]' versions.json)
find docs -type f -exec sed -i -E "s/$LATEST_VERSION/${TAG_NAME}/g" {} +
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
Expand Down

0 comments on commit e138d74

Please sign in to comment.