Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vijaymsc opened this issue Jul 22, 2024 · 3 comments

Comments

@vijaymsc
Copy link

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/[email protected]
        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
Copy link
Author

vijaymsc commented Jul 22, 2024

Failed to resolve action download info. Error: Unable to resolve action subosito/[email protected], repository not found on this server.

Error: Unable to resolve action subosito/[email protected], repository not found on this server.

@joonne
Copy link

joonne commented Aug 2, 2024

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

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
Copy link
Author

vijaymsc commented Aug 5, 2024

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.363 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants