Skip to content

Delete package-lock.json #52

Delete package-lock.json

Delete package-lock.json #52

Workflow file for this run

name: push
on: [push]
jobs:
list-contents:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: ls ./src/content/ > ./src/_content.txt
- run: if [[ "$(git diff --exit-code src/_content.txt)" =~ 'diff' ]]; then echo "IS_VALID=true" >> $GITHUB_ENV; else echo "IS_VALID=false" >> $GITHUB_ENV ;fi
- if: ${{ env.IS_VALID == 'true' }}
run: |
git config --local user.email "[email protected]"
git config --local user.name "AntVil"
git add ./src/_content.txt
git commit -m "update _content.txt"
- if: ${{ env.IS_VALID == 'true' }}
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true