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

Workflow starts automatically #1141

Closed
dynamicat opened this issue Jun 9, 2021 · 4 comments
Closed

Workflow starts automatically #1141

dynamicat opened this issue Jun 9, 2021 · 4 comments
Labels
awaiting-customer-response bug Something isn't working

Comments

@dynamicat
Copy link

Describe the bug
We have two workflows:
test.yml
release.yml

The test.yml workflow is triggered by a push to the develop and master branches like below with also paths defined:

on:
  push:
    branches:
      - master
      - develop
    paths:
      - .github/workflows/*.yml
      - package.json
      - phpinclude/composer.*
      - ruleset.xml
      - "**/*.html"
      - "**/*.php"
      - "**/*.css"
      - "**/*.scss"
      - "**/*.js"

The release.yml is triggered with the creation of a tag like so:

name: release
on:
  create:
    tags:
      - '*.*.*'

When a new feature branch is pushed to the repository the test workflow triggers but also for some reason the release workflow starts on its own, even though we have specified for the workflow to be triggered manually upon tag creation.

What could make this happen and/or is this normal?

Expected behavior
The test workflow is the only thing that is supposed to run.

Runner Version and Platform

Cloud hosted github

@dynamicat dynamicat added the bug Something isn't working label Jun 9, 2021
@callum-tait-pbx
Copy link

#1007

@TingluoHuang
Copy link
Member

@dynamicat can you share a link to the unexpected triggered run?

@TingluoHuang
Copy link
Member

@nikola-jokic
Copy link
Contributor

Hey everyone, I am closing this issue now since the answer is provided and there is no activity on it for a long time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-customer-response bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants