indicate dev build
This commit is contained in:
12
.github/workflows/manual-build.yml
vendored
12
.github/workflows/manual-build.yml
vendored
@@ -24,6 +24,18 @@ jobs:
|
||||
version=$(python3 -c "import version; print(f'dev-{version.__version__}')")
|
||||
echo "VERSION=$version" >> $GITHUB_ENV
|
||||
|
||||
# Extract branch name and latest commit SHA
|
||||
- name: Extract branch name and commit SHA
|
||||
id: branch_info
|
||||
run: |
|
||||
echo "BRANCH_NAME=${{ github.event.inputs.branch }}" >> $GITHUB_ENV
|
||||
echo "COMMIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
||||
|
||||
# Create a file indicating this is a dev build
|
||||
- name: Create DEV_BUILD file
|
||||
run: |
|
||||
echo "${{ env.BRANCH_NAME }}-${{ env.COMMIT_SHA }}" > DEV_BUILD
|
||||
|
||||
# Set up Docker
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
Reference in New Issue
Block a user