Skip to content

Fix custom emoji sync failing if emojis already exist #2

Fix custom emoji sync failing if emojis already exist

Fix custom emoji sync failing if emojis already exist #2

Workflow file for this run

name: Build
on:
push:
branches: '*'
pull_request:
branches: '*'
workflow_dispatch:
workflow_call:
outputs:
image-tag:
value: ${{ jobs.build-image.outputs.tag }}
env:
NODE_VERSION: 18
REGISTRY: ghcr.io
IMAGE_NAME: object-object/discord-github-utils
jobs:
build-image:
runs-on: ubuntu-latest
outputs:
tag: ${{ fromJson(steps.meta.outputs.json).tags[0] }}
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build Docker image
id: build
uses: docker/build-push-action@v5
with:
context: .
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=docker,dest=/tmp/image.tar
- name: Upload image artifact
uses: actions/upload-artifact@v4
with:
name: docker-image
path: /tmp/image.tar
retention-days: 7
build-aws-cdk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: eifinger/setup-rye@v4
with:
enable-cache: true
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: object-Object/ci/setup@v0
with:
node-version: ${{ env.NODE_VERSION }}
npm-packages: aws-cdk
- name: Sync dependencies
run: rye sync --no-lock --no-dev
- name: Synth aws-cdk stack
run: cdk synth --ci --no-lookups --strict
- name: Upload synth artifact
uses: actions/upload-artifact@v4
with:
name: aws-cdk-synth
path: cdk.out