shorebirdtech / setup-shorebird

A GitHub Action to install and setup Shorebird
https://docs.shorebird.dev/ci/github
MIT License
18 stars 3 forks source link

Shorebird is not initialized. Did you run "shorebird init"? #8

Closed Djsmk123 closed 1 year ago

Djsmk123 commented 1 year ago

I am following this https://docs.shorebird.dev/ci/github to integrate github action.

Everything work on local but when I start github action getting this error

Screenshot 2023-08-04 141048

Script

name: Shorebird Workflow

on:
  push:
    branches: [main]

jobs:
  patch-application:
    defaults:
      run:
        shell: bash
    runs-on: ubuntu-latest

    steps:
      - name: 🐦 Setup Shorebird
        uses: shorebirdtech/setup-shorebird@v0
      - name: 🚀 Use Shorebird
        run: shorebird --version

       # for testing purposes

      - name: 🚀 Check Application
        run: shorebird apps list
        env:
          SHOREBIRD_TOKEN: ${{ secrets.SHOREBIRD_TOKEN }}

       # for testing purposes
      - name: 🚀 Shorebird doctor
        run: shorebird doctor --fix
        env:
          SHOREBIRD_TOKEN: ${{ secrets.SHOREBIRD_TOKEN }}

      - name: 🚀 Shorebird Patch
        run: shorebird patch android --force
        env:
          SHOREBIRD_TOKEN: ${{ secrets.SHOREBIRD_TOKEN }}
Djsmk123 commented 1 year ago

Updates

After going through some links from some other github action found. I did not checkout repo using github action

      - name: 🐦 Check out the repository
        uses: actions/checkout@v3

Forgot due to it is not written in documentation.

Required updated documentation.