add sdr-slut
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 0s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 0s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user