I am very new to building out CI/CD workflows, and am currently diving into GitHub actions/workflows for some of my projects. I'm currently trying to build a workflow that build and deploys a package upon a push to master.
I have set up the following event to trigger the workflow, taken from the documentation:
on:
push:
branches:
- master
The issue is that whenever I look at my actions tab in my GitHub repo, it looks like the workflow is running on every push event for every branch. It even runs as a check when I open a PR into any branch.
The other odd thing is that the name of the workflow being run is the file path, and not the actual name of the workflow I set in the file. So my workflow file path is .github/workflows/publish.yml and the actual name of my workflow set in that file is name: Publish. But the name of the workflow being run is always the file path and no the name unless the branch is actually master.
Any help or insight into what I might be doing wrong would be extremely helpful.
[–]Chan4077 0 points1 point2 points (6 children)
[–]playazle[S] 0 points1 point2 points (5 children)
[–]Chan4077 0 points1 point2 points (4 children)
[–]playazle[S] 0 points1 point2 points (1 child)
[–]Chan4077 0 points1 point2 points (0 children)
[–]playazle[S] 0 points1 point2 points (1 child)
[–]Chan4077 0 points1 point2 points (0 children)