v0.0.62: created generate-new-version.sh
This commit is contained in:
+1
-3
@@ -28,12 +28,10 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
# - run: node ./dist/index.js
|
# - run: node ./dist/index.js
|
||||||
# shell: bash
|
# shell: bash
|
||||||
- uses: ddivad195/publish-action-package/[email protected]1
|
- uses: ddivad195/publish-action-package/package-and-publish@vv0.0.62
|
||||||
id: publish
|
id: publish
|
||||||
env:
|
env:
|
||||||
TOKEN: ${{ github.token }}
|
TOKEN: ${{ github.token }}
|
||||||
who_to_greet: ${{ inputs.registry }}
|
|
||||||
who_to_greet2: Monalisa
|
|
||||||
- name: Output variables
|
- name: Output variables
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
+1
-8
@@ -74742,13 +74742,6 @@ const semver_1 = __importDefault(__nccwpck_require__(11383));
|
|||||||
async function run() {
|
async function run() {
|
||||||
const tmpDirs = [];
|
const tmpDirs = [];
|
||||||
try {
|
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
|
// Parse and validate Actions execution context, including the repository name, release name and event type
|
||||||
const repository = process.env.GITHUB_REPOSITORY || '';
|
const repository = process.env.GITHUB_REPOSITORY || '';
|
||||||
if (repository === '') {
|
if (repository === '') {
|
||||||
@@ -74770,7 +74763,7 @@ async function run() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Gather & validate user inputs
|
// 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'}`);
|
console.log(`Official url: ${process.env.GITHUB_API_URL + '/packages/container-registry-url'}`);
|
||||||
//const response = await fetch(
|
//const response = await fetch(
|
||||||
// process.env.GITHUB_API_URL + '/packages/container-registry-url'
|
// process.env.GITHUB_API_URL + '/packages/container-registry-url'
|
||||||
|
|||||||
Executable
+25
@@ -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
@@ -13,14 +13,6 @@ export async function run(): Promise<void> {
|
|||||||
const tmpDirs: string[] = []
|
const tmpDirs: string[] = []
|
||||||
|
|
||||||
try {
|
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
|
// Parse and validate Actions execution context, including the repository name, release name and event type
|
||||||
const repository: string = process.env.GITHUB_REPOSITORY || ''
|
const repository: string = process.env.GITHUB_REPOSITORY || ''
|
||||||
if (repository === '') {
|
if (repository === '') {
|
||||||
@@ -46,7 +38,7 @@ export async function run(): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Gather & validate user inputs
|
// Gather & validate user inputs
|
||||||
const token: string = core.getInput('token')
|
const token: string = process.env.TOKEN!
|
||||||
|
|
||||||
console.log(
|
console.log(
|
||||||
`Official url: ${
|
`Official url: ${
|
||||||
|
|||||||
Reference in New Issue
Block a user