Skip to content

Commit

Permalink
docs(readme): script example in custom section added
Browse files Browse the repository at this point in the history
issue: #2
  • Loading branch information
danroxha committed Aug 20, 2022
1 parent 4aafcf3 commit 60fc214
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ rule:
{% if footer != '' %}
issue: {{footer}}
{% endif %}
script:
tasks:
- name: log bump
Expand All @@ -325,6 +326,31 @@ script:
fi
echo $CURRENT_TAG >> log-version.txt
- name: remote script
enable: true
language: sh
bind: example
when: after
script: |
TMP=".xconv/tmp"
if [ -e $TMP/lazy.sh ]
then
./$TMP/lazy.sh --version
exit
fi
mkdir -p $TMP
wget https://raw.githubusercontent.com/dannRocha/lazy/master/lazy.sh -qO $TMP/lazy.sh
chmod +x $TMP/lazy.sh
echo "-- Remote script:"
./$TMP/lazy.sh --version
# remove this command for enable 'cache' file
rm -fr .xconv
```
Expand Down

0 comments on commit 60fc214

Please sign in to comment.