Skip to content

Update Globalization.yaml #19

Update Globalization.yaml

Update Globalization.yaml #19

Workflow file for this run

name: sample
on: push
jobs:
deploy:
runs-on: ubuntu-latest # Azure CLI works only on Linux
permissions:
id-token: write
contents: write
steps:
# Step 1: Checkout the repository with full history (fetch depth 0)
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # Ensures full history and all tags are fetched
# Step 2: Output the Git version to check the environment
- name: Check Git version
run: git --version
# Step 3: Fetch all tags explicitly (in case tags weren't fetched)
- name: Fetch all tags
run: git fetch --tags
# Step 4: Show git status and tags for debugging
- name: Show git status and tags
run: |
git status
git tag -l
git log --oneline --decorate
git show ${inputs.commit-sha}
# Step 5: Download artifact from build job
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifact-name }}
fetch-tags: true # Ensures tags are fetched during artifact download
# Step 6: Get the existing version tag
- name: Get existing version tag
id: get-existing-tag
shell: bash
run: |
echo "EXISTING=$(git tag --points-at ${{ inputs.commit-sha }} | head -1)" >> $GITHUB_OUTPUT
# Step 7: Output the existing version tag
- run: echo Updating tag for ${{ steps.get-existing-tag.outputs.EXISTING }}
shell: bash