mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 09:08:34 +00:00
Co-authored-by: kamilkisiela <8167190+kamilkisiela@users.noreply.github.com> Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
name: Apollo Router Updater
|
|
on:
|
|
schedule:
|
|
# Every 2 hours
|
|
- cron: '0 */2 * * *'
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch: {}
|
|
|
|
jobs:
|
|
update:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: setup environment
|
|
uses: ./.github/actions/setup
|
|
with:
|
|
codegen: false
|
|
actor: apollo-router-updater
|
|
|
|
- name: Install Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: '1.84.1'
|
|
default: true
|
|
override: true
|
|
|
|
- name: Check for updates
|
|
id: check
|
|
run: |
|
|
pnpm tsx ./scripts/apollo-router-action.ts
|
|
|
|
- name: Run updates
|
|
if: steps.check.outputs.update == 'true'
|
|
run: cargo update -p apollo-router --precise ${{ steps.check.outputs.version }}
|
|
|
|
- name: Create Pull Request
|
|
if: steps.check.outputs.update == 'true'
|
|
uses: peter-evans/create-pull-request@v7
|
|
with:
|
|
token: ${{ secrets.GUILD_BOT_TOKEN }}
|
|
commit-message: Update apollo-router to version ${{ steps.check.outputs.version }}
|
|
branch: apollo-router-update-${{ steps.check.outputs.version }}
|
|
delete-branch: true
|
|
title: ${{ steps.check.outputs.title }}
|
|
body: |
|
|
Automatic update of apollo-router to version ${{ steps.check.outputs.version }}.
|
|
assignees: kamilkisiela
|
|
reviewers: kamilkisiela
|