diff --git a/.github/workflows/update-cares.yml b/.github/workflows/update-cares.yml index 97d8175d14..b7a1e5c7c5 100644 --- a/.github/workflows/update-cares.yml +++ b/.github/workflows/update-cares.yml @@ -37,25 +37,27 @@ jobs: exit 1 fi echo "latest=$LATEST_SHA" >> $GITHUB_OUTPUT + echo "tag=$LATEST_TAG" >> $GITHUB_OUTPUT - - name: Create PR if update needed + - name: Update version if needed if: success() && steps.check-version.outputs.current != steps.check-version.outputs.latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - BRANCH="update-cares-${GITHUB_SHA::8}" - git checkout -b "$BRANCH" - sed -i "s/CARES_VERSION\s\+[0-9a-f]\+/CARES_VERSION ${{ steps.check-version.outputs.latest }}/" cmake/targets/BuildCares.cmake - - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - git add cmake/targets/BuildCares.cmake - git commit -m "deps: update c-ares to ${{ steps.check-version.outputs.latest }}" - git push origin "$BRANCH" - gh pr create \ - --title "deps: update c-ares to ${LATEST_SHA::8}" \ - --body "Updates c-ares from ${CURRENT_VERSION::8} to ${LATEST_SHA::8}" \ - --base main \ - --head "$BRANCH" \ No newline at end of file + - name: Create Pull Request + if: success() && steps.check-version.outputs.current != steps.check-version.outputs.latest + uses: peter-evans/create-pull-request@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + add-paths: | + cmake/targets/BuildCares.cmake + commit-message: "deps: update c-ares to ${{ steps.check-version.outputs.latest }}" + title: "deps: update c-ares to ${{ steps.check-version.outputs.latest }}" + delete-branch: true + branch: deps/update-cares-${{ steps.check-version.outputs.latest }} + body: | + ## What does this PR do? + + Updates c-ares to version ${{ steps.check-version.outputs.tag }} + + Auto-updated by [this workflow](https://github.com/oven-sh/bun/actions/workflows/update-cares.yml) \ No newline at end of file diff --git a/.github/workflows/update-libarchive.yml b/.github/workflows/update-libarchive.yml index 72d2c53832..54c4287a10 100644 --- a/.github/workflows/update-libarchive.yml +++ b/.github/workflows/update-libarchive.yml @@ -37,25 +37,27 @@ jobs: exit 1 fi echo "latest=$LATEST_SHA" >> $GITHUB_OUTPUT + echo "tag=$LATEST_TAG" >> $GITHUB_OUTPUT - - name: Create PR if update needed + - name: Update version if needed if: success() && steps.check-version.outputs.current != steps.check-version.outputs.latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - BRANCH="update-libarchive-${GITHUB_SHA::8}" - git checkout -b "$BRANCH" - sed -i "s/LIBARCHIVE_VERSION\s\+[0-9a-f]\+/LIBARCHIVE_VERSION ${{ steps.check-version.outputs.latest }}/" cmake/targets/BuildLibArchive.cmake - - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - git add cmake/targets/BuildLibArchive.cmake - git commit -m "deps: update libarchive to ${{ steps.check-version.outputs.latest }}" - git push origin "$BRANCH" - gh pr create \ - --title "deps: update libarchive to ${LATEST_SHA::8}" \ - --body "Updates libarchive from ${CURRENT_VERSION::8} to ${LATEST_SHA::8}" \ - --base main \ - --head "$BRANCH" \ No newline at end of file + - name: Create Pull Request + if: success() && steps.check-version.outputs.current != steps.check-version.outputs.latest + uses: peter-evans/create-pull-request@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + add-paths: | + cmake/targets/BuildLibArchive.cmake + commit-message: "deps: update libarchive to ${{ steps.check-version.outputs.latest }}" + title: "deps: update libarchive to ${{ steps.check-version.outputs.latest }}" + delete-branch: true + branch: deps/update-libarchive-${{ steps.check-version.outputs.latest }} + body: | + ## What does this PR do? + + Updates libarchive to version ${{ steps.check-version.outputs.tag }} + + Auto-updated by [this workflow](https://github.com/oven-sh/bun/actions/workflows/update-libarchive.yml) \ No newline at end of file diff --git a/.github/workflows/update-libdeflate.yml b/.github/workflows/update-libdeflate.yml index 8c3214b86c..eae3eecf6a 100644 --- a/.github/workflows/update-libdeflate.yml +++ b/.github/workflows/update-libdeflate.yml @@ -37,25 +37,27 @@ jobs: exit 1 fi echo "latest=$LATEST_SHA" >> $GITHUB_OUTPUT + echo "tag=$LATEST_TAG" >> $GITHUB_OUTPUT - - name: Create PR if update needed + - name: Update version if needed if: success() && steps.check-version.outputs.current != steps.check-version.outputs.latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - BRANCH="update-libdeflate-${GITHUB_SHA::8}" - git checkout -b "$BRANCH" - sed -i "s/LIBDEFLATE_VERSION\s\+[0-9a-f]\+/LIBDEFLATE_VERSION ${{ steps.check-version.outputs.latest }}/" cmake/targets/BuildLibDeflate.cmake - - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - git add cmake/targets/BuildLibDeflate.cmake - git commit -m "deps: update libdeflate to ${{ steps.check-version.outputs.latest }}" - git push origin "$BRANCH" - gh pr create \ - --title "deps: update libdeflate to ${LATEST_SHA::8}" \ - --body "Updates libdeflate from ${CURRENT_VERSION::8} to ${LATEST_SHA::8}" \ - --base main \ - --head "$BRANCH" \ No newline at end of file + - name: Create Pull Request + if: success() && steps.check-version.outputs.current != steps.check-version.outputs.latest + uses: peter-evans/create-pull-request@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + add-paths: | + cmake/targets/BuildLibDeflate.cmake + commit-message: "deps: update libdeflate to ${{ steps.check-version.outputs.latest }}" + title: "deps: update libdeflate to ${{ steps.check-version.outputs.latest }}" + delete-branch: true + branch: deps/update-libdeflate-${{ steps.check-version.outputs.latest }} + body: | + ## What does this PR do? + + Updates libdeflate to version ${{ steps.check-version.outputs.tag }} + + Auto-updated by [this workflow](https://github.com/oven-sh/bun/actions/workflows/update-libdeflate.yml) \ No newline at end of file diff --git a/.github/workflows/update-lolhtml.yml b/.github/workflows/update-lolhtml.yml index 2c187ff1f4..d089ef0515 100644 --- a/.github/workflows/update-lolhtml.yml +++ b/.github/workflows/update-lolhtml.yml @@ -37,25 +37,27 @@ jobs: exit 1 fi echo "latest=$LATEST_SHA" >> $GITHUB_OUTPUT + echo "tag=$LATEST_TAG" >> $GITHUB_OUTPUT - - name: Create PR if update needed + - name: Update version if needed if: success() && steps.check-version.outputs.current != steps.check-version.outputs.latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - BRANCH="update-lolhtml-${GITHUB_SHA::8}" - git checkout -b "$BRANCH" - sed -i "s/LOLHTML_VERSION\s\+[0-9a-f]\+/LOLHTML_VERSION ${{ steps.check-version.outputs.latest }}/" cmake/targets/BuildLolHtml.cmake - - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - git add cmake/targets/BuildLolHtml.cmake - git commit -m "deps: update lolhtml to ${{ steps.check-version.outputs.latest }}" - git push origin "$BRANCH" - gh pr create \ - --title "deps: update lolhtml to ${LATEST_SHA::8}" \ - --body "Updates lolhtml from ${CURRENT_VERSION::8} to ${LATEST_SHA::8}" \ - --base main \ - --head "$BRANCH" \ No newline at end of file + - name: Create Pull Request + if: success() && steps.check-version.outputs.current != steps.check-version.outputs.latest + uses: peter-evans/create-pull-request@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + add-paths: | + cmake/targets/BuildLolHtml.cmake + commit-message: "deps: update lolhtml to ${{ steps.check-version.outputs.latest }}" + title: "deps: update lolhtml to ${{ steps.check-version.outputs.latest }}" + delete-branch: true + branch: deps/update-lolhtml-${{ steps.check-version.outputs.latest }} + body: | + ## What does this PR do? + + Updates lolhtml to version ${{ steps.check-version.outputs.tag }} + + Auto-updated by [this workflow](https://github.com/oven-sh/bun/actions/workflows/update-lolhtml.yml) \ No newline at end of file diff --git a/.github/workflows/update-lshpack.yml b/.github/workflows/update-lshpack.yml index 820df7701c..7902c72bd0 100644 --- a/.github/workflows/update-lshpack.yml +++ b/.github/workflows/update-lshpack.yml @@ -37,25 +37,27 @@ jobs: exit 1 fi echo "latest=$LATEST_SHA" >> $GITHUB_OUTPUT + echo "tag=$LATEST_TAG" >> $GITHUB_OUTPUT - - name: Create PR if update needed + - name: Update version if needed if: success() && steps.check-version.outputs.current != steps.check-version.outputs.latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - BRANCH="update-lshpack-${GITHUB_SHA::8}" - git checkout -b "$BRANCH" - sed -i "s/LSHPACK_VERSION\s\+[0-9a-f]\+/LSHPACK_VERSION ${{ steps.check-version.outputs.latest }}/" cmake/targets/BuildLshpack.cmake - - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - git add cmake/targets/BuildLshpack.cmake - git commit -m "deps: update lshpack to ${{ steps.check-version.outputs.latest }}" - git push origin "$BRANCH" - gh pr create \ - --title "deps: update lshpack to ${LATEST_SHA::8}" \ - --body "Updates lshpack from ${CURRENT_VERSION::8} to ${LATEST_SHA::8}" \ - --base main \ - --head "$BRANCH" \ No newline at end of file + - name: Create Pull Request + if: success() && steps.check-version.outputs.current != steps.check-version.outputs.latest + uses: peter-evans/create-pull-request@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + add-paths: | + cmake/targets/BuildLshpack.cmake + commit-message: "deps: update lshpack to ${{ steps.check-version.outputs.latest }}" + title: "deps: update lshpack to ${{ steps.check-version.outputs.latest }}" + delete-branch: true + branch: deps/update-lshpack-${{ steps.check-version.outputs.latest }} + body: | + ## What does this PR do? + + Updates lshpack to version ${{ steps.check-version.outputs.tag }} + + Auto-updated by [this workflow](https://github.com/oven-sh/bun/actions/workflows/update-lshpack.yml) \ No newline at end of file