Compare commits
26 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
77457ea287 | ||
|
|
e8b5b63d1c | ||
|
|
66275b1859 | ||
|
|
73d32ca516 | ||
|
|
540c2f28b1 | ||
|
|
6fc6977161 | ||
|
|
c2d396a37f | ||
|
|
b20416b7c5 | ||
|
|
be9949c74f | ||
|
|
91c4718897 | ||
|
|
b114c72af5 | ||
|
|
883a5bcccc | ||
|
|
36c0060397 | ||
|
|
da3b1211e6 | ||
|
|
c851c8ae7c | ||
|
|
3f49c16e37 | ||
|
|
b1829d3728 | ||
|
|
7d279b7d0f | ||
|
|
6c30d0dea4 | ||
| 2fb5ba6951 | |||
|
|
afee38ade6 | ||
|
|
619be2651b | ||
|
|
211d89990d | ||
|
|
7d414fc970 | ||
|
|
320f9bd6b6 | ||
|
|
3de73a337c |
64
.github/workflows/create-release-from-commit.yaml
vendored
Normal file
64
.github/workflows/create-release-from-commit.yaml
vendored
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
name: "Create Release Tag"
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: 'The new release tag to create (e.g., v3.8.1)'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
commit_sha:
|
||||||
|
description: 'The short commit SHA from the calcom submodule to use for this release'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
name: "Tag Release"
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: "Checkout main branch to get starting point"
|
||||||
|
uses: "actions/checkout@v4"
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.TOKEN_GITEA }}
|
||||||
|
# We check out main, but will create the release commit off of it
|
||||||
|
# without modifying the branch itself.
|
||||||
|
ref: 'main'
|
||||||
|
submodules: true
|
||||||
|
|
||||||
|
- name: "Create Release Commit and Tag"
|
||||||
|
run: |
|
||||||
|
# Configure git user for the commit
|
||||||
|
git config user.email "actions@gitea.local"
|
||||||
|
git config user.name "Gitea Actions"
|
||||||
|
|
||||||
|
echo "Updating submodule to commit ${{ inputs.commit_sha }}..."
|
||||||
|
|
||||||
|
# Navigate into the submodule, fetch latest history, and check out the specific commit.
|
||||||
|
# This modifies the submodule's checked-out version in the working directory.
|
||||||
|
cd calcom
|
||||||
|
git fetch origin
|
||||||
|
git checkout ${{ inputs.commit_sha }}
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
# Stage the change to the submodule pointer.
|
||||||
|
git add calcom
|
||||||
|
|
||||||
|
# Create a NEW commit. This commit is NOT on the main branch.
|
||||||
|
# It's a "dangling" commit that only HEAD is pointing to at this moment.
|
||||||
|
# The parent of this new commit is the latest commit from 'main'.
|
||||||
|
git commit -m "release: Version ${{ inputs.version }} with calcom at ${{ inputs.commit_sha }}"
|
||||||
|
|
||||||
|
# Get the full SHA of the new commit we just created.
|
||||||
|
NEW_COMMIT_SHA=$(git rev-parse HEAD)
|
||||||
|
echo "Created new release commit: $NEW_COMMIT_SHA"
|
||||||
|
|
||||||
|
echo "Creating and pushing tag ${{ inputs.version }}..."
|
||||||
|
|
||||||
|
# Create an annotated tag pointing directly at our new, branchless commit.
|
||||||
|
git tag -a "${{ inputs.version }}" -m "Release ${{ inputs.version }}" $NEW_COMMIT_SHA
|
||||||
|
|
||||||
|
# Push ONLY the new tag to the repository. Git will automatically send
|
||||||
|
# the required commit object ($NEW_COMMIT_SHA) along with the tag.
|
||||||
|
git push origin "${{ inputs.version }}"
|
||||||
2
calcom
2
calcom
Submodule calcom updated: 4e2cff0fd5...076afdc00e
Reference in New Issue
Block a user