How to fix Azure Static Web Apps workflow actions not running

Adrien Bourdeaux 0 Reputation points
2023-03-29T16:47:13.29+00:00

I opened a new static web app with my usual settings to test my app that I had only tested locally and I selected my org, repo and the only branch of my project(main) and set it to deploy, after I checked the actions page and the workflow branch had been created but nothing had ran, failed or was queued. This happens even after I tried deleting it and making a new one. Any clue what the issue might be?

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,173 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Erkan Sahin 840 Reputation points
    2023-03-29T16:50:49.44+00:00

    It sounds like there may be an issue with the configuration or setup of your workflow file. Make sure that your workflow file is properly configured to run your tests and deploy your app. Check the syntax of the file to ensure that there are no errors or typos.

    Hmm. You may also want to check the logs and debug output of your workflow to see if there are any specific error messages or issues that are preventing it from running. Additionally, make sure that the correct permissions have been granted for the repo and branch that you are deploying from.

    Please mark my answer if it helps :-)

    0 comments No comments

  2. Grmacjon-MSFT 19,151 Reputation points Moderator
    2023-03-30T20:37:30.2433333+00:00

    Hi @Adrien Bourdeaux we are sorry to hear you're facing this issue. You mentioned "nothing had ran, failed or was queued" does this mean that it's just stuck in a loop and nothing happens after deployment?

    There could be several reasons why the GitHub Actions workflow for your static web app is not running:

    1. Make sure that your workflow file is located in the correct directory in your GitHub repository. The workflow file should be located in the .github/workflows/ directory, and the file name should end with the .yml extension.
    2. Check that the name of your workflow file matches the expected format. The name of the file should be in the format <name>.yml, where <name> is a descriptive name for your workflow. For example, build-deploy.yml.
    3. Make sure that the required secrets and environment variables are configured correctly. For example, you need to configure the AZURE_STATIC_WEB_APPS_API_TOKEN secret to authenticate with Azure Static Web Apps.
    4. Verify that the required packages and dependencies are installed. Check that your project's package.json file contains all the required dependencies, and that they are up-to-date

    If you tried all these troubleshooting steps and the issues persists, please let us know so we can investigate further.

    Thanks,

    Grace

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.