Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEQ]Yaswanth/Made changes in Versioning Action #195

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .github/actions/versioning/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,11 @@ inputs:
RELEASE_TYPE:
description: Release Type
required: false
outputs:
version:
description: Version

runs:
using: composite
steps:
- name: Tag build
run: echo "${GITHUB_REF#refs/heads/} $(date -u +'%Y-%m-%dT%H:%M:%SZ')" > _site/version
shell: bash
- name: Set Version
id: set_version
run: |
echo "version=${GITHUB_REF#refs/heads/} $(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> "$GITHUB_OUTPUT"
shell: bash

3 changes: 3 additions & 0 deletions .github/workflows/release-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
uses: ./.github/actions/versioning
with:
release_type: production
- name: Extract version
id: extract_version
run: echo "RELEASE_VERSION=$(cat _site/version)" >> $GITHUB_OUTPUT
- name: Publish to Cloudflare Pages Production
uses: "./.github/actions/publish_to_pages_production"
with:
Expand Down