Skip to content

Commit

Permalink
[experimental] test ci 4
Browse files Browse the repository at this point in the history
  • Loading branch information
KorewaLidesu committed Mar 17, 2024
1 parent 37b61b5 commit 7cde053
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/BuildTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ on:
push:
pull_request:
workflow_dispatch:
inputs:
build_type:
type: choice
description: Build type
options:
- Alpha
- Beta
- Release

permissions:
contents: read
Expand All @@ -29,6 +37,11 @@ jobs:
java-version: '21'
distribution: 'temurin'

- name: Gather build info
id: vars
run: |
echo "BUILD_TYPE=$(echo ${{ github.event.commits[0].message }} | sed -En 's/.*\[(.*|\ .*)\]/\1/p')" >> $GITHUB_OUTPUT
- name: Fix Gradle permission
run: chmod +x ./gradlew

Expand Down Expand Up @@ -62,4 +75,4 @@ jobs:
repository: CleanroomMC/CleanroomMMC
event-type: cleanroom_upload_artifact
client-payload: |
'{"commit_hash": "${{ github.sha }}", "run_job_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"}, "branch": "${GITHUB_REF#*/}", "build_type": "$( echo ${{ github.event.commits[0].message }} | sed -En 's/.*\[(.*|\ .*)\]/\1/p' )"'
'{"commit_hash": "${{ github.sha }}", "run_job_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"}, "branch": "${{ github.ref_name }}", "build_type": "${{ inputs.environment || steps.vars.outputs.BUILD_TYPE }}"'

0 comments on commit 7cde053

Please sign in to comment.