Skip to content

Conversation

@VictoriousRaptor
Copy link
Contributor

Stop checking on push to avoid checking merge commits on dev branch. Commits of PRs can be checked on synchronized.

@VictoriousRaptor VictoriousRaptor added the github_actions Pull requests that update GitHub Actions code label Jan 3, 2023
@VictoriousRaptor VictoriousRaptor self-assigned this Jan 3, 2023
followup: ${{ steps.spelling.outputs.followup }}
runs-on: ubuntu-latest
if: (contains(github.event_name, 'pull_request') && github.head_ref != 'l10n_dev') || github.event_name == 'push'
if: (contains(github.event_name, 'pull_request') && github.head_ref != 'l10n_dev')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this pull request event work, would it only get triggered when a pr is created? If the case then it probably wouldn't be triggered again by subsequent pushes to the pr.

I wonder maybe a better way is to just github.head_ref != dev && github.head_ref != master, so it doesn't check pushes to dev and master branches.

Copy link
Contributor Author

@VictoriousRaptor VictoriousRaptor Jan 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is also triggered on synchronize event (any push to the pr head triggers it). Tested in my fork.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simply ignoring dev or master is enough though. but if you push to a fork the check is also triggered. I want to just check in the pr.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh forget to comment on push at the beginning of the file

# with:
# checkout: true
# spell_check_this: check-spelling/spell-check-this@main
# task: ${{ needs.spelling.outputs.followup }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we commenting these out?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is bot comment for push checks. Check on push is disabled so this is not needed anymore.

@jjw24 jjw24 added bug Something isn't working Dev branch only An issue or fix for the Dev branch build labels Jan 3, 2023
@jjw24 jjw24 added this to the 1.11.1 milestone Jan 3, 2023
@VictoriousRaptor VictoriousRaptor requested a review from jjw24 January 4, 2023 08:02
@jjw24 jjw24 merged commit 079dfd7 into dev Jan 5, 2023
@jjw24 jjw24 deleted the StopSpellCheckOnPush branch January 5, 2023 02:47
@jjw24 jjw24 modified the milestones: 1.11.1, 1.12.0 Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Dev branch only An issue or fix for the Dev branch build github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants