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

Don't fail the action if the branch name doesn't match? #33

Open
benrowe-chuffed opened this issue May 16, 2022 · 2 comments
Open

Don't fail the action if the branch name doesn't match? #33

benrowe-chuffed opened this issue May 16, 2022 · 2 comments

Comments

@benrowe-chuffed
Copy link

Thanks for your GH action.

It would be nice if there was an option to not fail the step if the branch name does not match.

@jfeldstein-cw
Copy link

jfeldstein-cw commented Nov 30, 2023

Use the native branches: filter so it only runs on a given branch pattern

eg:

# .github/workflows/action.yml
on:
  pull_request:
    types:
      - opened
    branches:
      - main

@eddielin0926
Copy link

You can use continue-on-error to prevents a job from failing when a step fails.

- uses: tzkhan/pr-update-action@v2
  continue-on-error: true
  with:
    repo-token: "${{ secrets.GITHUB_TOKEN }}"
    head-branch-regex: 'foo-\d+'
    title-template: '[%headbranch%] '

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants