Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion action-io-generator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-alpine
FROM node:24-alpine

COPY ./entrypoint.sh /entrypoint.sh

Expand Down
4 changes: 2 additions & 2 deletions action-io-generator/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ echo "Generating inputs and outputs enum in $file_name"
set -x

npx action-io-generator --outFile=$file_name
git --no-pager diff --no-index --exit-code $INPUT_IO_FILE $file_name

set +x

if [[ $? -eq 0 ]]; then
if git --no-pager diff --no-index --exit-code $INPUT_IO_FILE $file_name; then
echo "✅ Inputs and Outputs are configured correctly!"
else
echo "❌ Inputs and Outputs are not configured correctly!"
exit 1
fi
7 changes: 4 additions & 3 deletions action-io-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
"main": "dist/index.js",
"repository": {
"type": "git",
"url": "git://github.com/tetchel/action-io-generator.git"
"url": "git+https://github.com/redhat-actions/common.git",
"directory": "action-io-generator"
},
"bin": "bin.js",
"author": "tetchell@redhat.com",
"license": "MIT",
"bugs": {
"url": "https://github.com/tetchel/action-io-generator/issues"
"url": "https://github.com/redhat-actions/common/issues"
},
"homepage": "https://github.com/tetchel/action-io-generator#readme",
"homepage": "https://github.com/redhat-actions/common/tree/main/action-io-generator#readme",
"scripts": {
"compile": "tsc -p .",
"bundle": "npx webpack --mode=production && cp -v bin.js dist/",
Expand Down
3 changes: 1 addition & 2 deletions bundle-verifier/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ inputs:
description: "Command to generate your bundle. An npm/yarn script is recommended."
required: true
bundle_file:
description: 'Output directory where your bundle is located.'
description: 'Output file where your bundle is located (e.g. dist/index.js).'
required: true
default: 'dist'
working_directory:
description: 'Working directory to use for relative path to bundle_file, and to run the bundle_command in.'
required: false
Expand Down
4 changes: 2 additions & 2 deletions bundle-verifier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "bundle-verifier",
"version": "0.0.1",
"description": "GitHub Action to verify the committed bundle is up-to-date with the source",
"main": "index.js",
"author": "",
"private": true,
"main": "dist/index.js",
"license": "MIT",
"scripts": {
"compile": "tsc -p .",
Expand Down
2 changes: 1 addition & 1 deletion commit-data/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ echo "pr_base=${pr_base}" >> "$GITHUB_OUTPUT"
echo "short_sha=${short_sha}" >> "$GITHUB_OUTPUT"
echo "tag=${tag}" >> "$GITHUB_OUTPUT"
echo "tags=${tags}" >> "$GITHUB_OUTPUT"
echo "tag_count=${tags_count}" >> "$GITHUB_OUTPUT"
echo "tags_count=${tags_count}" >> "$GITHUB_OUTPUT"
Loading