v0.0.62: created generate-new-version.sh

This commit is contained in:
Edwin Sirko
2024-01-24 11:01:54 -05:00
committed by ddivad195
parent 624fc6877e
commit 94d1a57d98
4 changed files with 28 additions and 20 deletions
+1 -3
View File
@@ -28,12 +28,10 @@ runs:
shell: bash
# - run: node ./dist/index.js
# shell: bash
- uses: ddivad195/publish-action-package/package-and-publish@v0.0.61
- uses: ddivad195/publish-action-package/package-and-publish@vv0.0.62
id: publish
env:
TOKEN: ${{ github.token }}
who_to_greet: ${{ inputs.registry }}
who_to_greet2: Monalisa
- name: Output variables
shell: bash
run: |
Generated Vendored
+1 -8
View File
@@ -74742,13 +74742,6 @@ const semver_1 = __importDefault(__nccwpck_require__(11383));
async function run() {
const tmpDirs = [];
try {
const whoToGreet = process.env.who_to_greet;
core.info(`Hello, ${whoToGreet}!`);
const token2 = process.env.TOKEN;
core.info(`Hello, ${token2}!`);
const token3 = process.env.who_to_greet2;
core.info(`whaaa? ${token3}!`);
core.info('Hello, world!');
// Parse and validate Actions execution context, including the repository name, release name and event type
const repository = process.env.GITHUB_REPOSITORY || '';
if (repository === '') {
@@ -74770,7 +74763,7 @@ async function run() {
return;
}
// Gather & validate user inputs
const token = core.getInput('token');
const token = process.env.TOKEN;
console.log(`Official url: ${process.env.GITHUB_API_URL + '/packages/container-registry-url'}`);
//const response = await fetch(
// process.env.GITHUB_API_URL + '/packages/container-registry-url'
+25
View File
@@ -0,0 +1,25 @@
#!/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@v'$VERSION'/g' action.yml
npm run bundle
git add .
git commit -m "$VERSION: $MESSAGE"
git push
gh release create --repo ddivad195/publish-action-package --title $VERSION --notes $VERSION $VERSION
+1 -9
View File
@@ -13,14 +13,6 @@ export async function run(): Promise<void> {
const tmpDirs: string[] = []
try {
const whoToGreet = process.env.who_to_greet
core.info(`Hello, ${whoToGreet}!`)
const token2 = process.env.TOKEN
core.info(`Hello, ${token2}!`)
const token3 = process.env.who_to_greet2
core.info(`whaaa? ${token3}!`)
core.info('Hello, world!')
// Parse and validate Actions execution context, including the repository name, release name and event type
const repository: string = process.env.GITHUB_REPOSITORY || ''
if (repository === '') {
@@ -46,7 +38,7 @@ export async function run(): Promise<void> {
}
// Gather & validate user inputs
const token: string = core.getInput('token')
const token: string = process.env.TOKEN!
console.log(
`Official url: ${