title
This commit is contained in:
parent
04839708ea
commit
1685e75a97
|
@ -57,11 +57,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.BOT_TOKEN }}
|
token: ${{ secrets.BOT_TOKEN }}
|
||||||
# fetch-depth: '1'
|
# fetch-depth: '1'
|
||||||
- id: get_head_commit_title
|
- id: get-head-commit-title
|
||||||
|
name: get-title
|
||||||
run: |
|
run: |
|
||||||
echo "title=$(git log --format=%B -n 1 HEAD | head -n 1)" >> $GITHUB_OUTPUT
|
echo "title=$(git log --format=%B -n 1 HEAD | head -n 1)" >> $GITHUB_OUTPUT
|
||||||
cat $GITHUB_OUTPUT
|
cat $GITHUB_OUTPUT
|
||||||
- run: echo ${{ steps.get-commit-title.outputs.text }}
|
- run: echo ${{ steps.get-head-commit-title.outputs.title }}
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '20.9.0'
|
node-version: '20.9.0'
|
||||||
|
@ -93,7 +94,7 @@ jobs:
|
||||||
if: steps.has-changes.outputs.changes == 'true'
|
if: steps.has-changes.outputs.changes == 'true'
|
||||||
run: |
|
run: |
|
||||||
git add -A
|
git add -A
|
||||||
git commit -a -m "documented ${{ steps.get-commit-title.outputs.text }}"
|
git commit -a -m "documented ${{ steps.get-head-commit-title.outputs.title }}"
|
||||||
git push origin HEAD
|
git push origin HEAD
|
||||||
exit 1
|
exit 1
|
||||||
schema:
|
schema:
|
||||||
|
|
Loading…
Reference in New Issue