question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to launch the workflow from an autogenerated hello world workflow yaml file

See original GitHub issue

Description Hi, I’m trying to launch a workflow from a private github repository without success but I got a message "Workflow run was successfully requested. " It seems very strange. Maybe a bug ?

To Reproduce Steps to reproduce the behavior:

  1. Create an existing valid workflow file in yaml from your computer inside a .github/workflows created by mkdir -p.
  2. Go to action page from the repository. Then click on New workflow button.
  3. On Choose of wokflow page, click on the link set up a workflow yourself . It generates the following yaml file.
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
  # Triggers the workflow on push or pull request events but only for the main branch
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  # This workflow contains a single job called "build"
  build:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest

    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - uses: actions/checkout@v2

      # Runs a single command using the runners shell
      - name: Run a one-line script
        run: echo Hello, world!

      # Runs a set of commands using the runners shell
      - name: Run a multi-line script
        run: |
          echo Add other actions to build,
          echo test, and deploy your project.
  1. Give an available name for this file, then click on Start commit and choose the Commit directly to the main branch. option and Commint new file.
  2. Go on Action page, Click on CI workflow, then click on Run workflow with Use workflow from main branch. You will have the message "Workflow run was successfully requested. "

Expected behavior I expect to see the workflow running, but I have a page with the message This workflow has no runs yet..

Runner Version and Platform

I use free pricing plan for a private repository.

OS ubuntu-latest

What’s not working?

I cannot trigger the workflow.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:10

github_iconTop GitHub Comments

4reactions
NikitaGourevitchcommented, Jun 21, 2022

Tooday, coming back to my actions, some dark magic make them work again.

1reaction
NikitaGourevitchcommented, Jun 20, 2022

@ruvceskistefan @moonipulate 8 hours I facing the same issue now, sudenly my 1month old jobs wasn’t trigered on my Organization private repo. Primary I tried to resolve issue in my yml file, but then I tried autogenerated one and it doesn’t work too.

Working if

  • copy paste the project to new repo (loosing git history)
  • copy paste yml in a new empty project

Don’t fix if

  • clone it
  • delete 3 last runs
  • desactivate/activate actions in configuration
  • git reset to last yml modification
  • set repo to public ( sorry for poor english ).
Read more comments on GitHub >

github_iconTop Results From Across the Web

Workflow is not shown so I cannot run it manually (Github ...
I created the workflow Test but there is no Run workflow button to run it manually. ... This is my test.yml file. Is...
Read more >
7 Github Actions Tricks I Wish I Knew Before I Started
In the image we can see the “Run workflow” option (top-right). It opens a menu that allows us to add the input we've...
Read more >
Implement a "Hello World" GitHub Action on your self-hosted ...
A quick “Hello World” example to get started with workflow automation using GitHub Actions running tasks on your local Windows machines.
Read more >
Github Actions— Everything You Need to Know to Get ...
A job is a series of tasks that gets executed in a workflow upon being triggered by an event. Each step is either...
Read more >
4. Working with Workflows - Learning GitHub Actions [Book]
I've covered a number of the basics for understanding workflows. But you also need to be able to easily create, run, and monitor...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found