subosito / flutter-action

Flutter environment for use in GitHub Actions. It works on Linux, Windows, and macOS.
MIT License
2.22k stars 199 forks source link

flutter action using self hosted runners in github enterprise account , unable to run my workflow #322

Open vijaymsc opened 1 month ago

vijaymsc commented 1 month ago
name: Flutter CI

# This workflow is triggered on pushes to the repository.

on:
  push:
    branches:
      - cicd_dev

    # on: push    # Default will running for every branch.

jobs:
  build:
    # This job will run on ubuntu virtual machine
    runs-on: self-hosted
    steps:

      # Setup Java environment in order to build the Android app.
      - uses: actions/checkout@v1
      - uses: actions/setup-java@v1
        with:
          java-version: '12.x'

      # Setup the flutter environment.
      - name: Clone repository
        uses: actions/checkout@v2
      - name: Set up Flutter
        uses: subosito/flutter-action@v2.16.0
        with:
          flutter-version: 3.22.2
      - run: flutter pub get
      - run: flutter build apk --release --flavor prod

      # Upload generated apk to the artifacts.
      - uses: actions/upload-artifact@v1
        with:
          name: release-apk
          path: build/app/outputs/apk/release/app-release.apk
vijaymsc commented 1 month ago

Failed to resolve action download info. Error: Unable to resolve action subosito/flutter-action@v2.16.0, repository not found on this server.

Error: Unable to resolve action subosito/flutter-action@v2.16.0, repository not found on this server.

joonne commented 1 month ago

The access to github.com should be configured either to grant access automatically to all actions or manually per action :+1:

After manual syncinc the actions can be viewed from github.<enterprise>.com/actions and for example the flutter-action would work with:

- name: Set up Flutter
  uses: actions/flutter-action@v2
  with:
    channel: stable
    flutter-version: 3.22.0

P.S. this might not be the correct place to ask this question but I had just worked with this same thing so figured to answer

vijaymsc commented 1 month ago

Again error :-

Current runner version: '2.273.5' Runner name: '......' Machine name: '..............' Prepare workflow directory Prepare all required actions Getting action download info Failed to resolve action download info. Error: Unable to resolve action actions/flutter-action@v[2], repository not found on this server. If you want to use this action from GitHub.com, see the following documentation: https://docs.github.com/en/enterprise/admin/github-actions/managing-access-to-actions-from-githubcom Retrying in 27.49 seconds Failed to resolve action download info. Error: Unable to resolve action actions/flutter-action@v2, repository not found on this server. If you want to use this action from GitHub.com, see the following documentation: https://docs.github.com/en/enterprise/admin/github-actions/managing-access-to-actions-from-githubcom Retrying in 27.[3]()63 seconds Error: Unable to resolve action actions/flutter-action@v2, repository not found on this server. If you want to use this action from GitHub.com, see the following documentation: https://docs.github.com/en/enterprise/admin/github-actions/managing-access-to-actions-from-githubcom