Skip to content

Bump ccxt from 4.3.40 to 4.3.43 #30

Bump ccxt from 4.3.40 to 4.3.43

Bump ccxt from 4.3.40 to 4.3.43 #30

name: Dependabot auto-merge
on: pull_request
permissions:
contents: read
jobs:
docker-build:
name: Build and test
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' || github.event.action == 'synchronize' && startsWith( github.head_ref, 'dependabot' ) }}
env:
IMAGE_NAME: ${{ github.repository }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build image
uses: docker/build-push-action@v4
with:
load: true
tags: ${{ env.IMAGE_NAME }}:${{ github.sha }}
- name: Run tests
run: docker run --rm ${{ env.IMAGE_NAME }}:${{ github.sha }} --exchanges kucoin kraken --symbols BTC/USDT ETH/USDT
env:
IMAGE_NAME: sammrai/fetch_ohlcv
dependabot:
runs-on: ubuntu-latest
permissions: write-all
needs: docker-build
if: ${{ github.actor == 'dependabot[bot]' || github.event.action == 'synchronize' && startsWith( github.head_ref, 'dependabot' ) }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve and enable auto-merge for Dependabot PRs
if: |
${{ ( steps.metadata.outputs.package-ecosystem == 'hex' && steps.metadata.outputs.update-type == 'version-update:semver-patch' ) || steps.metadata.outputs.package-ecosystem == 'github-actions' }}
run: |
gh pr review --approve "$PR_URL"
gh pr edit "$PR_URL" -t "(auto merged) $PR_TITLE"
gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
PR_TITLE: ${{ github.event.pull_request.title }}
GH_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }}