Skip to content

Commit

Permalink
Merge 5bc6d37 into 84871f8
Browse files Browse the repository at this point in the history
  • Loading branch information
gregkonush authored Sep 1, 2024
2 parents 84871f8 + 5bc6d37 commit 528906e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/pr-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Check versions

on:
pull_request:

jobs:
docker:
runs-on: arc-arm64
steps:
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
gitea.proompteng.ai/d/lab/ecran
tags: |
type=semver,value=${{ steps.tag_version.outputs.new_tag }}
- name: Build and push
run: |
echo ${{ steps.meta.outputs.tags }}
1 change: 0 additions & 1 deletion apps/ecran/src/app/problems/[id]/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { InferSelectModel } from 'drizzle-orm'
type Problem = InferSelectModel<typeof problems>

export async function createProblem(data: FormData) {
console.log(data)
const result = await db
.insert(problems)
.values({
Expand Down
2 changes: 1 addition & 1 deletion apps/ecran/src/app/problems/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
import { eq } from 'drizzle-orm'

export default async function Problem({ params: { id } }: { params: { id: string } }) {
logger.info('Loading problem', { id })
logger.info(`Loading problem ${id}`)
if (id === 'create') {
return (
<form action={createProblem} className="space-y-4 min-w-full">
Expand Down

0 comments on commit 528906e

Please sign in to comment.