Skip to content

Commit

Permalink
ci: add beta releasy to fuels-rs to track fuel-core (#1154)
Browse files Browse the repository at this point in the history
## Description

This PR adds beta version of `releasy` which will create
`upgrade/fuel-core` branch and track changes happening in the fuel-core.
This way any commits that merged to fuel-core which will be breaking
fuels-rs once released, will be catched by the CI of that branch.

This is for testing, we will install this to all repos once we are sure
that everything works nicely.
Co-authored-by: hal3e <[email protected]>
Co-authored-by: Oleksii Filonenko <[email protected]>
Co-authored-by: Green Baneling <[email protected]>
  • Loading branch information
kayagokalp authored Oct 20, 2023
1 parent 7a65dd0 commit d0765ff
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/releasy-dependency-commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on:
repository_dispatch:
types: [new-commit-to-dependency]

jobs:
new_commit_to_dependency:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- run: |
git clone https://github.com/FuelLabs/releasy && cd releasy && git checkout kayagokalp/releasy-handle && cd ..
cargo install --path ./releasy/releasy-handler
releasy-handler --event new-commit-to-dependency --event-repo-name ${{ github.event.client_payload.repo.name }} --event-repo-owner ${{ github.event.client_payload.repo.owner }} --event-commit-hash ${{ github.event.client_payload.details.commit_hash}} --path ./.github/workflows/repo-plan.toml
16 changes: 16 additions & 0 deletions .github/workflows/releasy-self-commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
push:
branches:
- master

jobs:
new_commit_to_self:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- run: |
git clone https://github.com/FuelLabs/releasy && cd releasy && git checkout kayagokalp/releasy-handle && cd ..
cargo install --path ./releasy/releasy-handler
releasy-handler --event new-commit-to-self --event-repo-name fuels-rs --event-repo-owner FuelLabs --path ./.github/workflows/repo-plan.toml --event-commit-hash ${GITHUB_SHA}
14 changes: 14 additions & 0 deletions .github/workflows/repo-plan.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[current-repo]
name = "fuels-rs"
owner = "FuelLabs"

[repo.fuels-rs.details]
name = "fuels-rs"
owner = "FuelLabs"

[repo.fuel-core.details]
name = "fuel-core"
owner = "FuelLabs"

[repo.fuels-rs]
dependencies = ["fuel-core"]

0 comments on commit d0765ff

Please sign in to comment.