diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml new file mode 100644 index 0000000..2841f9e --- /dev/null +++ b/.github/workflows/dependabot.yml @@ -0,0 +1,31 @@ +--- + name: Dependabot Automate + + on: + workflow_call: + pull_request: + + permissions: + contents: write + pull-requests: write + + jobs: + dependabot: + runs-on: ubuntu-latest + if: github.event.pull_request.user.login == 'dependabot[bot]' + steps: + - name: Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + - name: Approve a PR + run: gh pr review --approve "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GH_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Enable auto-merge for Dependabot PRs + run: gh pr merge --auto --squash "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GH_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 365318f..f870ed8 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -3,6 +3,8 @@ name: Publish Docker image on: push: branches: [main] + schedule: + - cron: "0 6 */15 * *" workflow_dispatch: concurrency: diff --git a/Dockerfile b/Dockerfile index 040c250..3e16fdb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/actions/actions-runner:2.330.0 +FROM ghcr.io/actions/actions-runner:2.331.0 USER root @@ -156,7 +156,7 @@ ENV PATH=$NPM_CONFIG_PREFIX/bin:$PATH # Install global npm packages and AWS SAM CLI RUN npm install -g yarn @redocly/cli typescript \ - && pip3 install --no-cache-dir aws-sam-cli + && pip3 install --no-cache-dir --break-system-packages --ignore-installed blinker aws-sam-cli # --- FIX PERMISSIONS --- # After root has run npm, change ownership of the cache and global install