Skip to content

Commit

Permalink
refactor(ci): stable-daily tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
befanyt committed Oct 20, 2024
1 parent 7b049bd commit ac0527a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,15 +246,14 @@ jobs:
COMMIT_TAGS+=("${SHA_SHORT}")
fi
TODAY="$(date +%A)"
if [[ ${{ matrix.fedora_version }} == "stable" ]]; then
BUILD_TAGS=("${FEDORA_VERSION}-daily" "${FEDORA_VERSION}-daily-${TIMESTAMP}")
if [[ ${{ github.event_name }} == "schedule" ]]; then
TODAY="$(date +%A)"
if [[ "${TODAY}" == "${{ inputs.weekly_tag_day }}" ]]; then
BUILD_TAGS+=("${FEDORA_VERSION}" "${FEDORA_VERSION}-${TIMESTAMP}")
fi
if [[ ${{ github.event_name }} == "schedule" ]] && \
[[ "${{ inputs.weekly_tag_day }}" != "${TODAY}" ]]; then
BUILD_TAGS+=("stable-daily" "stable-daily-${TIMESTAMP}")
else
BUILD_TAGS+=("${FEDORA_VERSION}" "${FEDORA_VERSION}-${TIMESTAMP}")
BUILD_TAGS+=("stable" "stable-${TIMESTAMP}")
BUILD_TAGS+=("stable-daily" "stable-daily-${TIMESTAMP}")
fi
else
BUILD_TAGS=("${{ env.fedora_version }}" "${{ env.fedora_version }}-${TIMESTAMP}")
Expand Down

0 comments on commit ac0527a

Please sign in to comment.