Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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}}
2 changes: 2 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Publish Docker image
on:
push:
branches: [main]
schedule:
- cron: "0 6 */15 * *"
workflow_dispatch:

concurrency:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/actions/actions-runner:2.330.0
FROM ghcr.io/actions/actions-runner:2.331.0

USER root

Expand Down Expand Up @@ -123,7 +123,7 @@
php8.5-bcmath \
php8.5-intl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Check warning on line 126 in Dockerfile

View workflow job for this annotation

GitHub Actions / Build Check

Empty continuation lines will become errors in a future release

NoEmptyContinuation: Empty continuation line More info: https://docs.docker.com/go/dockerfile/rule/no-empty-continuation/

# Configure PHP: Register all PHP versions and set php8.5 as default
RUN update-alternatives --install /usr/bin/php php /usr/bin/php8.1 81 \
Expand Down Expand Up @@ -156,7 +156,7 @@

# 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
Expand Down