Skip to content

Commit

Permalink
ci cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Oct 12, 2023
1 parent a42ea5c commit 125d78c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 31 deletions.
27 changes: 0 additions & 27 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,3 @@ updates:
interval: daily
time: "02:00"
open-pull-requests-limit: 10
ignore:
- dependency-name: actix
versions:
- 0.11.0
- 0.11.1
- dependency-name: docopt
versions:
- 1.1.1
- dependency-name: actix-rt
versions:
- 2.0.0
- 2.0.2
- 2.1.0
- 2.2.0
- dependency-name: postgres
versions:
- 0.19.1
- dependency-name: serde
versions:
- 1.0.124
- 1.0.125
- dependency-name: env_logger
versions:
- 0.8.3
- dependency-name: criterion
versions:
- 0.3.4
2 changes: 1 addition & 1 deletion .github/workflows/build-deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/book
6 changes: 3 additions & 3 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ permissions: write-all
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
if: github.actor == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve Dependabot PRs
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Enable auto-merge for Dependabot PRs
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
Expand Down

0 comments on commit 125d78c

Please sign in to comment.