Skip to content

feat: add github actions #1

feat: add github actions

feat: add github actions #1

Workflow file for this run

name: build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
types: [opened, synchronize, reopened]
jobs:
docker:

Check failure on line 11 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yaml

Invalid workflow file

You have an error in your yaml syntax on line 11
if: ${{
!(github.event_name == 'push' && contains(github.event.head_commit.message, 'Merge pull request #'))
}}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build
uses: docker/build-push-action@v6
with:
push: false
tags: ghcr.io/maaassistantarknights/pallas-bot-discord:test
platforms: linux/amd64