Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f2b0643b95 | ||
|
|
a6985f583c | ||
|
|
b6bd2fd8c2 |
1
.github/workflows/dockerhub-description.yml
vendored
1
.github/workflows/dockerhub-description.yml
vendored
@@ -1,5 +1,6 @@
|
||||
name: Update Docker Hub Description
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
@@ -16,7 +16,7 @@ description: 'An action to update a Docker Hub repository description from READM
|
||||
# default: ./README.md
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'docker://peterevans/dockerhub-description:2.3.0'
|
||||
image: 'docker://peterevans/dockerhub-description:2.3.1'
|
||||
branding:
|
||||
icon: 'upload'
|
||||
color: 'blue'
|
||||
|
||||
@@ -25,6 +25,12 @@ fi
|
||||
# Set the default path to README.md
|
||||
README_FILEPATH=${README_FILEPATH:="./README.md"}
|
||||
|
||||
# Check the file exists
|
||||
if [ ! -f ${README_FILEPATH} ]; then
|
||||
echo "Readme file not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check the file size
|
||||
if [ $(wc -c <${README_FILEPATH}) -gt 25000 ]; then
|
||||
echo "File size exceeds the maximum allowed 25000 bytes"
|
||||
|
||||
Reference in New Issue
Block a user