-
Notifications
You must be signed in to change notification settings - Fork 23
38 lines (38 loc) · 1.07 KB
/
ci.yml
File metadata and controls
38 lines (38 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
inputs:
type:
type: choice
default: draft
options:
- build
- draft
- release
jobs:
read-repo-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Outputs
id: out
run: |
echo "mcpelauncher-ref=$(cat mcpelauncher.commit)" >> $GITHUB_OUTPUT
outputs:
mcpelauncher-ref: ${{ steps.out.outputs.mcpelauncher-ref }}
ci:
needs: read-repo-files
if: (!cancelled())
uses: ./.github/workflows/main.yml
with:
publish: ${{ github.event_name == 'push' && github.server_url == 'https://github.com' || github.event_name == 'workflow_dispatch' && inputs.type == 'release' }}
use-repo-files: true
offset: 400
build-m1: true
draft: ${{ github.event_name == 'workflow_dispatch' && inputs.type == 'draft' }}
mcpelauncher-ref: ${{ needs.read-repo-files.outputs.mcpelauncher-ref || 'ng' }}
secrets: inherit