ad-m / github-push-action

GitHub actions to push back to repository eg. updated code
MIT License
1.21k stars 230 forks source link

Offer a major version tag (v0) #65

Open jasongitmail opened 4 years ago

jasongitmail commented 4 years ago

Thanks for creating the action.

The ReadMe suggests using @master for the version, but that's a bit risky stability wise for users. Offering a major version tag would provide stability for users, assuming you follow semver.

You can accomplish this on each release with:

git tag v0.7.0
git push origin v0.7.0
git tag -fa v0 -m "Update v0 tag"
git push origin v0 --force

Then the README could say:

- name: Push changes
  uses: ad-m/github-push-action@v0
  with:
     github_token: ${{ secrets.GITHUB_TOKEN }}
vvscode commented 4 years ago

just a note - you can use a tag there 40bf560936a8022e68a3c00e7d2abefaf01305a6 is latest (at the moment)

jasongitmail commented 4 years ago

Using a commit as the version would provide stability, but wouldn't allow any minor or patch versions to be used automatically