mirror of
https://github.com/godotengine/godot
synced 2024-11-02 08:53:46 +00:00
Identify pull request builds from GitHub Actions with the PR number
This makes it easier to go back to the pull request the build was made from.
This commit is contained in:
parent
a574c0296b
commit
0c1797383f
1 changed files with 13 additions and 1 deletions
14
.github/actions/godot-build/action.yml
vendored
14
.github/actions/godot-build/action.yml
vendored
|
@ -31,6 +31,18 @@ runs:
|
|||
SCONS_CACHE_LIMIT: ${{ inputs.scons-cache-limit }}
|
||||
run: |
|
||||
echo "Building with flags:" platform=${{ inputs.platform }} target=${{ inputs.target }} tests=${{ inputs.tests }} ${{ env.SCONSFLAGS }}
|
||||
if [ "${{ inputs.target }}" != "editor" ]; then rm -rf editor; fi # Ensure we don't include editor code.
|
||||
|
||||
if [ "${{ inputs.target }}" != "editor" ]; then
|
||||
# Ensure we don't include editor code in export template builds.
|
||||
rm -rf editor
|
||||
fi
|
||||
|
||||
if [ "${{ github.event.number }}" != "" ]; then
|
||||
# Set build identifier with pull request number if available. This is displayed throughout the editor.
|
||||
export BUILD_NAME="gh-${{ github.event.number }}"
|
||||
else
|
||||
export BUILD_NAME="gh"
|
||||
fi
|
||||
|
||||
scons platform=${{ inputs.platform }} target=${{ inputs.target }} tests=${{ inputs.tests }} ${{ env.SCONSFLAGS }}
|
||||
ls -l bin/
|
||||
|
|
Loading…
Reference in a new issue