diff --git a/.github/workflows/generate.yaml b/.github/workflows/generate.yaml index 9a76f89..72f8e3d 100644 --- a/.github/workflows/generate.yaml +++ b/.github/workflows/generate.yaml @@ -52,11 +52,17 @@ jobs: with: name: site - - uses: coatl-dev/actions/simple-git-diff@v0 - id: git-diff + - run: + keys=( + "build_dependencies" + "test_dependencies" + ) + for key in "${keys[@]}" + do + find _data/formula -name '*.json' -type f -exec sed -i '' "s/$key/core_$key/g" {} + + done - - uses: coatl-dev/actions/gpg-import@v0 - if: ${{ success() && steps.git-diff.outputs.diff == 'true' }} + - uses: coatl-dev/actions/gpg-import@coatl with: passphrase: ${{ secrets.COATL_BOT_GPG_PASSPHRASE }} private-key: ${{ secrets.COATL_BOT_GPG_PRIVATE_KEY }} @@ -66,7 +72,7 @@ jobs: git add --all git commit -m "docs: update docs" git push --force --set-upstream origin coatl-bot-docs-autoupdate - gh pr create --fill - env: - GH_TOKEN: ${{ secrets.COATL_BOT_GH_TOKEN }} - if: ${{ success() && steps.git-diff.outputs.diff == 'true' }} + + - uses: coatl-dev/actions/create-pr@coatl + with: + gh-token: ${{ secrets.COATL_BOT_GH_TOKEN }}