Skip to content

Commit

Permalink
ci: don't upload or release on PRs by dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
yshalsager authored Apr 11, 2022
1 parent 1bde92f commit 7d48c57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, 'chore(deps-dev)') && github.event.head_commit.author.name!= 'dependabot[bot]' }}

steps:
- uses: actions/checkout@v2
Expand All @@ -22,6 +21,7 @@ jobs:
spec: wit_transcriber.spec

- uses: actions/upload-artifact@v2
if: github.actor != 'dependabot[bot]'
with:
name: wit_transcriber.exe
path: dist/windows
Expand All @@ -33,6 +33,7 @@ jobs:
spec: wit_transcriber.spec

- uses: actions/upload-artifact@v2
if: github.actor != 'dependabot[bot]'
with:
name: wit_transcriber
path: dist/linux
Expand All @@ -42,6 +43,7 @@ jobs:
run: echo ::set-output name=datetime::$(date +'%Y%m%d-%H%M%S')

- name: Release
if: github.actor != 'dependabot[bot]'
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.datetime.outputs.datetime }}
Expand Down

0 comments on commit 7d48c57

Please sign in to comment.