Fail on tag mismatch

Open
#85 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
github-actions, shell, wordpress
Domain
ci-cd, devops, release

Research direction

Start by inspecting the deployment workflow and the action entry point that handles the stable tag before publishing to WordPress.org. Trace where the tag and stable tag are read, then verify that a mismatch fails the workflow without updating the tag.

Written by the indexing model from the issue text.

Description

help wanted type:enhancement

Is your enhancement related to a problem? Please describe.

If you mistakenly forget to update the stable tag, the deploy will happen but .org won't pick up the new version. This is never expected.

Describe the solution you'd like

The workflow should fail if the tag doesn't match the stable tag

Describe alternatives you've considered

I could probably write something in the workflow before this action runs but it feels like something the action should handle since there's never a case you would want to push the tag with a mismatched stable tag.

Additional context

I don't think the workflow should update the tag though. It should fail and alert.

Dominant language
Shell
Stars
665
Forks
115
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 10up/action-wordpress-plugin-deploy

All issues in 10up/action-wordpress-plugin-deploy

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.