Skip to content

Commit

Permalink
feat: update action scripts (#30)
Browse files Browse the repository at this point in the history
Co-authored-by: itmustbemagic <49156114+itmustbemagic@users.noreply.github.com>
  • Loading branch information
allthings-bot and itmustbemagic authored Aug 6, 2024
1 parent 72b0841 commit 9df1c5a
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/actions/ddb-pipeline-status/action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# You can find code and docs here: https://github.com/allthings/github-action-tools
name: ddb-pipeline-status
description: 'Changes the pipeline status and checks it'
inputs:
Expand Down
5 changes: 5 additions & 0 deletions .github/actions/docker-build/action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# You can find code and docs here: https://github.com/allthings/github-action-tools
name: docker-build
description: 'Setup up docker and login'
inputs:
Expand All @@ -15,6 +16,9 @@ inputs:
tag:
description: 'Image tag'
required: true
build-args:
description: 'Build args for image build'
required: false

runs:
using: "composite"
Expand All @@ -40,3 +44,4 @@ runs:
tags: allthings/${{ env.PROJECT }}:${{ steps.export_tag_name_and_platforms.outputs.tag_name }}
platforms: ${{ steps.export_tag_name_and_platforms.outputs.platforms }}
context: ${{ inputs.context }}
build-args: ${{ inputs.build-args }}
1 change: 1 addition & 0 deletions .github/actions/docker-setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# You can find code and docs here: https://github.com/allthings/github-action-tools
name: docker-setup
description: 'Setup up docker and login'
runs:
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/node-manager/action.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# You can find code and docs here: https://github.com/allthings/github-action-tools
name: node-manager
description: 'Setup node and install yarn'
inputs:
node-version:
description: 'Node version'
required: true
default: 18
runs:
using: "composite"
steps:
Expand Down
17 changes: 11 additions & 6 deletions .github/actions/print-logs/action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# You can find code and docs here: https://github.com/allthings/github-action-tools
name: print-logs
description: 'Prints logs by given path'
inputs:
Expand Down Expand Up @@ -27,13 +28,17 @@ runs:
if [ -d ./"$log" ]; then
for logInDir in "$log"/*;
do
echo "::group::$logInDir";
/bin/cat "$logInDir";
echo "::endgroup::";
if [ -f "$logInDir" ]; then
echo "::group::$logInDir";
/bin/cat "$logInDir";
echo "::endgroup::";
fi;
done;
else
echo "::group::$log";
/bin/cat "$log";
echo "::endgroup::";
if [ -f "$log" ]; then
echo "::group::$log";
/bin/cat "$log";
echo "::endgroup::";
fi;
fi;
done
1 change: 1 addition & 0 deletions .github/actions/retry-script/action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# You can find code and docs here: https://github.com/allthings/github-action-tools
name: retry-script
description: 'Retries provided script'
inputs:
Expand Down
1 change: 1 addition & 0 deletions .github/actions/slack-notifications/action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# You can find code and docs here: https://github.com/allthings/github-action-tools
name: slack-notifications
description: 'Sends slack notification'
inputs:
Expand Down
1 change: 1 addition & 0 deletions .github/actions/upload-artifacts/action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# You can find code and docs here: https://github.com/allthings/github-action-tools
name: upload-artifacts
description: 'Uploads files to s3'
inputs:
Expand Down

0 comments on commit 9df1c5a

Please sign in to comment.