gitea-packages-update-check: ciを追加
/ build-tool (pull_request) Failing after 4s Details
/ build-angular (pull_request) Has been skipped Details
/ build-docker-image (pull_request) Has been skipped Details

This commit is contained in:
usbharu 2024-03-13 18:32:29 +09:00
parent 88e041b278
commit 74bba0f262
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
on:
pull_request:
types:
- labeled
- opened
- synchronize
- closed
workflow_dispatch:
permissions:
pull-requests: read
jobs:
build-tool:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
defaults:
run:
working-directory: ./gitea-packages-update-check
if: contains(github.event.pull_request.labels.*.name,'gitea-packages-update-check')
steps:
- uses: actions/checkout@v3
- run: go build -o gitea-packages-update-check -ldflags="-s -w" -trimpath
- run: curl --user usbharu:${{ secrets.DEPLOY_TOKEN }} --upload-file gitea-packages-update-check https://git.usbharu.dev/api/packages/usbharu/generic/gitea-packages-update-check/${{ github.sha }}/gitea-packages-update-check
if: github.event.pull_request.merged == true