CI Changes
This commit is contained in:
committed by
aerinon
parent
54858500e5
commit
ca40f87daa
51
.github/actions/appversion-prepare/action.yml
vendored
Normal file
51
.github/actions/appversion-prepare/action.yml
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
name: Prepare AppVersion
|
||||
description: Prepare AppVersion document for later use
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
# checkout commit
|
||||
- name: Checkout commit
|
||||
shell: bash
|
||||
run: |
|
||||
echo "Checkout commit"
|
||||
- name: Checkout commit
|
||||
uses: actions/checkout@v4.1.4
|
||||
|
||||
# Set Run Number
|
||||
- name: Set Run Number
|
||||
shell: bash
|
||||
run: |
|
||||
echo "Set Run Number"
|
||||
- name: Set Run Number
|
||||
id: set_run_number
|
||||
shell: bash
|
||||
run: |
|
||||
GITHUB_RUN_NUMBER="${{ github.run_number }}a${{ github.run_attempt }}"
|
||||
echo "github_run_number=$GITHUB_RUN_NUMBER" >> $GITHUB_OUTPUT
|
||||
|
||||
# Prepare AppVersion
|
||||
#TODO: source/classes/appversion.py writes the tag format
|
||||
- name: 💬Prepare AppVersion
|
||||
shell: bash
|
||||
run: |
|
||||
echo "💬Prepare AppVersion"
|
||||
- name: Prepare AppVersion
|
||||
shell: bash
|
||||
env:
|
||||
OS_NAME: ${{ inputs.os-name }}
|
||||
GITHUB_RUN_NUMBER: ${{ steps.set_run_number.outputs.github_run_number }}
|
||||
run: |
|
||||
python -m source.classes.appversion
|
||||
python ./resources/ci/common/prepare_appversion.py
|
||||
|
||||
# upload appversion artifact for later step
|
||||
- name: 🔼Upload AppVersion Artifact
|
||||
shell: bash
|
||||
run: |
|
||||
echo "🔼Upload AppVersion Artifact"
|
||||
- name: 🔼Upload AppVersion Artifact
|
||||
uses: actions/upload-artifact@v4.3.3
|
||||
with:
|
||||
name: appversion
|
||||
path: ./resources/app/meta/manifests/app_version.txt
|
||||
Reference in New Issue
Block a user