Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zekth committed Aug 8, 2021
1 parent 8bc0082 commit 523dee9
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ jobs:
- run: npm ci
- run: npm run lint
- run: npm run test
- name: Detect Generation needed Dist
run: |
npm run build
git diff --exit-code --quiet ./dist && echo "No changes detected. Ok." || echo "Changes detected. Please run npm run build"
automerge:
needs: build
Expand All @@ -19,23 +23,3 @@ jobs:
- uses: fastify/github-action-merge-dependabot@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

autogenerate:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.clone_url }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Generate Dist
run: |
npm ci
npm run build
git diff --exit-code --quiet ./dist && exit 0 || echo "changes detected"
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git add dist
git commit -m "bot: generate dist"
git push

0 comments on commit 523dee9

Please sign in to comment.