diff --git a/.github/workflows/update.yaml b/.github/workflows/update.yaml new file mode 100644 index 0000000..65ccdac --- /dev/null +++ b/.github/workflows/update.yaml @@ -0,0 +1,25 @@ +name: Fetch latest Bun release +on: + workflow_dispatch: + schedule: + - cron: "0 * * * *" # every hour +jobs: + update: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Fetch latest Bun release + id: fetch-release + run: | + curl -L \ + -H "Accept: application/vnd.github+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/oven-sh/bun/releases | jq '.[0].tag_name' --raw-output > bumper + - name: Commit results + uses: EndBug/add-and-commit@v9 + with: + committer_name: GitHub Actions + committer_email: 41898282+github-actions[bot]@users.noreply.github.com + fetch: false + message: Update to latest Bun release + add: "bumper --force"