v0.0.58: try this
This commit is contained in:
+4
-4
@@ -28,11 +28,11 @@ 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]7
|
- uses: ddivad195/publish-action-package/[email protected]8
|
||||||
id: publish
|
id: publish
|
||||||
with:
|
env:
|
||||||
token: ${{ github.token }}
|
TOKEN: ${{ github.token }}
|
||||||
who-to-greet: ${{ env.registry }}
|
who_to_greet: ${{ env.registry }}
|
||||||
- name: Output variables
|
- name: Output variables
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
+2
-2
@@ -74742,9 +74742,9 @@ const semver_1 = __importDefault(__nccwpck_require__(11383));
|
|||||||
async function run() {
|
async function run() {
|
||||||
const tmpDirs = [];
|
const tmpDirs = [];
|
||||||
try {
|
try {
|
||||||
const whoToGreet = core.getInput('who-to-greet', { required: true });
|
const whoToGreet = process.env.who_to_greet;
|
||||||
core.info(`Hello, ${whoToGreet}!`);
|
core.info(`Hello, ${whoToGreet}!`);
|
||||||
const token2 = core.getInput('token', { required: true });
|
const token2 = process.env.TOKEN;
|
||||||
core.info(`Hello, ${token2}!`);
|
core.info(`Hello, ${token2}!`);
|
||||||
// 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 || '';
|
||||||
|
|||||||
@@ -7,11 +7,6 @@ branding:
|
|||||||
color: 'red'
|
color: 'red'
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
token:
|
|
||||||
required: true
|
|
||||||
description: >
|
|
||||||
GITHUB_TOKEN having the write:package scope to publish an action package to GHCR.
|
|
||||||
default: ${{ github.token }}
|
|
||||||
path:
|
path:
|
||||||
required: false
|
required: false
|
||||||
description: The work directory or path to be tar archived and uploaded as OCI Artifact layer.
|
description: The work directory or path to be tar archived and uploaded as OCI Artifact layer.
|
||||||
|
|||||||
+2
-2
@@ -13,9 +13,9 @@ export async function run(): Promise<void> {
|
|||||||
const tmpDirs: string[] = []
|
const tmpDirs: string[] = []
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const whoToGreet = core.getInput('who-to-greet', { required: true })
|
const whoToGreet = process.env.who_to_greet
|
||||||
core.info(`Hello, ${whoToGreet}!`)
|
core.info(`Hello, ${whoToGreet}!`)
|
||||||
const token2 = core.getInput('token', { required: true })
|
const token2 = process.env.TOKEN
|
||||||
core.info(`Hello, ${token2}!`)
|
core.info(`Hello, ${token2}!`)
|
||||||
|
|
||||||
// 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
|
||||||
|
|||||||
Reference in New Issue
Block a user