add sdr-slut
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 0s

This commit is contained in:
hogweed1
2025-11-16 20:08:26 +10:00
parent 219d3c2dd7
commit 690e248bc6
2 changed files with 3 additions and 23 deletions

View File

@@ -9,29 +9,8 @@ jobs:
# run:
# shell: bash
steps:
- name: Manual repository checkout using git and bash
run: |
# The runner provides GITHUB_WORKSPACE environment variable
cd $GITHUB_WORKSPACE
# Use Gitea's built-in token to authenticate the clone operation
# GITHUB_SERVER_URL and GITHUB_REPOSITORY are standard environment variables
REPO_URL="https://${{ gitea.token }}@${GITHUB_SERVER_URL#*://}/${GITHUB_REPOSITORY}.git"
echo "Cloning repository..."
git clone --depth=1 $REPO_URL .
# Ensure we are on the correct commit/SHA for PRs or Pushes
if [ "${{ github.event_name }}" = "pull_request" ]; then
git checkout ${{ github.event.pull_request.head.sha }}
else
git checkout ${{ github.sha }}
fi
# Explicitly set shell to bash for clarity
shell: bash
- name: Run your actual bash code here
- name: common-setup-just-created
run: |
echo "Current working directory:"
pwd