fix lint errors, remove generate-new-version file
This commit is contained in:
@@ -2,9 +2,10 @@
|
|||||||
|
|
||||||
_This action_ packages _your action_ as OCI artifacts and publishes it to the [GitHub Container registry](ghcr.io).
|
_This action_ packages _your action_ as OCI artifacts and publishes it to the [GitHub Container registry](ghcr.io).
|
||||||
|
|
||||||
This allows your action to be consumed as an _immutable_ package even if a [semver](https://semver.org/) is specified in the consumer's workflow file.
|
This allows your action to be consumed as an _immutable_ package even if a [SemVer](https://semver.org/) is specified in the consumer's workflow file.
|
||||||
|
|
||||||
Your action workflow must be triggered on `release` as in the following example. The release's title must follow [semantic versioning](https://semver.org/). Then consumers of your action will then be able to specify the version, e.g., `- uses: your-name/[email protected]` or even `- uses: your-name/your-action@v1`.
|
Your action workflow must be triggered on `release` as in the following example. The release's title must follow [semantic versioning](https://semver.org/).
|
||||||
|
Then consumers of your action will then be able to specify the version, e.g., `- uses: your-name/[email protected]` or even `- uses: your-name/your-action@v1`.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
VERSION=$1
|
|
||||||
MESSAGE=$2
|
|
||||||
|
|
||||||
if [ -z "$VERSION" ]
|
|
||||||
then
|
|
||||||
echo "No version supplied"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$MESSAGE" ]
|
|
||||||
then
|
|
||||||
echo "No message supplied"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Generating new version $VERSION with message $MESSAGE"
|
|
||||||
|
|
||||||
#sed -i '' -E 's/ddivad195\/publish-action-package\/package-and-publish.*$/ddivad195\/publish-action-package\/package-and-publish@'$VERSION'/g' action.yml
|
|
||||||
npm run bundle
|
|
||||||
git add .
|
|
||||||
git commit -m "$VERSION: $MESSAGE"
|
|
||||||
git push
|
|
||||||
git tag $VERSION
|
|
||||||
git push origin $VERSION
|
|
||||||
gh release create --repo ddivad195/publish-action-package --title $VERSION --notes $VERSION $VERSION
|
|
||||||
Reference in New Issue
Block a user