Everytime I push something from the git bash, 2 actions are triggered. Example, on the picture below, #2 is the last time I pushed on GitHub.
Then 2 actions are generated:
On this action named pages build and deployment
I see 'Triggered via dynamic'.
I was expecting only one action workflow everytime I push something. I have another project configured the same and I don't face that kind of problem.
Reading here
Today you will begin to see a new workflow running called pages build and deployment in your public GitHub Pages repositories. This workflow is automatically triggered when you push to the branch configured for GitHub Pages in your repository. As the name suggests, it builds and deploys your pages site. The initial benefit of this change is enabling you to see your build logs and any errors that may occur which has been a long standing issue for Pages users. However, in the future this will enable us to give you the ability to fully customize your pages build and deployment workflow to use any static site generator you want without having to push the build output to a special branch of the repository.
You may notice this workflow uses some new actions actions/pages-deploy, and actions/jekyll-build-pages. For now these actions are designed to be used in the generated workflow, however, starting early next year we will introduce some additional changes that will enable you to take advantage of them.
You should be able to change this in settings
On GitHub, navigate to your site's repository.
Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.
Screenshot of a repository header showing the tabs. The "Settings" tab is highlighted by a dark orange outline.
In the "Code and automation" section of the sidebar, click Pages.
Under "Build and deployment", under "Source", select GitHub Actions.
GitHub will suggest several starter workflows. If you already have a workflow to publish your site, you can skip this step. Otherwise, choose one of the options to create a GitHub Actions workflow. For more information about creating your custom workflow, see "Creating a custom GitHub Actions workflow to publish your site."
GitHub Pages does not associate a specific workflow to the GitHub Pages settings. However, the GitHub Pages settings will link to the workflow run that most recently deployed your site.
But plese Note: Publishing your GitHub Pages site with a custom GitHub Actions workflow is in beta and subject to change.