Skip to content

Commit

Permalink
Testing upper()
Browse files Browse the repository at this point in the history
  • Loading branch information
ia committed Aug 3, 2023
1 parent c79c6bf commit 0d1c8ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ jobs:
run: git config --global --add safe.directory /__w/IronOS/IronOS && git config --global safe.directory "$GITHUB_WORKSPACE"

- name: Git meta info
env:
GITHUB_CI_PR: ${{ github.event.pull_request.head.sha }}
run: echo "GITHUB_CI_PR_SHA=${{github.event_name}}" >> "${GITHUB_ENV}"

- name: Build ${{ matrix.model }}
Expand Down Expand Up @@ -84,9 +82,7 @@ jobs:
run: git config --global --add safe.directory /__w/IronOS/IronOS && git config --global safe.directory "$GITHUB_WORKSPACE"

- name: Git meta info
env:
GITHUB_CI_PR: ${{ github.event.pull_request.head.sha }}
run: echo "GITHUB_CI_PR_SHA=${{github.event_name}}" >> "${GITHUB_ENV}"
run: echo "GITHUB_CI_PR_SHA=${{github.event.pull_request.head.sha}}" >> "${GITHUB_ENV}"

- name: Build ${{ matrix.model }}
run: make -C source/ -j$(nproc) model="${{ matrix.model }}" firmware-multi_compressed_European firmware-multi_compressed_Bulgarian+Russian+Serbian+Ukrainian firmware-multi_Chinese+Japanese
Expand Down
6 changes: 3 additions & 3 deletions Translations/make_translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1265,15 +1265,15 @@ def get_translation_sanity_checks_text(defs: dict) -> str:

def get_version_suffix(ver) -> str:
# Check env var from push.yml first:
# if it's pull request then use vX.YY + C.ID for version line as in *C*I with proper tag instead of merge tag for detached tree
# - if it's pull request then use vX.YY + C.ID for version line as in *C*I with proper tag instead of merge tag for detached tree
try:
print("====>>>> GITHUB_CI_PR_SHA:", os.environ["GITHUB_CI_PR_SHA"])
if os.environ["GITHUB_CI_PR_SHA"] != "":
return "C" + "." + os.environ["GITHUB_CI_PR_SHA"][:8]
return "C" + "." + os.environ["GITHUB_CI_PR_SHA"][:8].upper()
except KeyError:
print("====>>>> GITHUB_CI_PR_SHA:", "FALSE")
True
# No github PR SHA ID, hence "normal" build
# - no github PR SHA ID, hence "normal" build

suffix = str("")

Expand Down

0 comments on commit 0d1c8ab

Please sign in to comment.