add act_runner
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 0s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 0s
This commit is contained in:
@@ -10,43 +10,59 @@ jobs:
|
|||||||
# shell: bash
|
# shell: bash
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# - name: write secret to dotenv
|
|
||||||
# working-directory: /usr/share/ansible-repo
|
- name: Checkout repository manually using bash
|
||||||
# shell: bash
|
run: |
|
||||||
# run: |
|
# Ensure the workspace directory is clean and navigate into it
|
||||||
# echo -e "nigg"
|
# GITHUB_WORKSPACE is an environment variable set by the runner
|
||||||
|
cd $GITHUB_WORKSPACE
|
||||||
|
|
||||||
|
# Authenticate using the GITEA_TOKEN (managed by Gitea Actions)
|
||||||
|
# GITHUB_SERVER_URL and GITHUB_REPOSITORY are also standard env vars
|
||||||
|
git clone --depth=1 https://${{ gitea.token }}@${GITHUB_SERVER_URL#*://}/${GITHUB_REPOSITORY}.git .
|
||||||
|
|
||||||
|
# Optional: checkout a specific pull request head if it's a PR event
|
||||||
|
# Note: Gitea uses refs/pull/:prNumber/head instead of merge commits for PRs
|
||||||
|
if [ "${{ github.event_name }}" = "pull_request" ]; then
|
||||||
|
git checkout ${{ github.event.pull_request.head.sha }}
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Check system info using bash
|
||||||
|
run: |
|
||||||
|
echo "Running on the host machine"
|
||||||
|
uname -a
|
||||||
|
which bash
|
||||||
|
bash --version
|
||||||
|
|
||||||
|
- name: List files in the workspace
|
||||||
|
run: ls -lsa
|
||||||
|
|
||||||
|
- name: Run a simple bash script
|
||||||
|
run: |
|
||||||
|
echo "Hello from Gitea Actions!"
|
||||||
|
mkdir -p my_output
|
||||||
|
echo "This was created by a workflow running on the host." > my_output/output.txt
|
||||||
|
shell: bash
|
||||||
|
|
||||||
# - name: asdf2
|
# - name: Checkout repository
|
||||||
# working-directory: /usr/share/ansible-repo
|
# uses: actions/checkout@v3
|
||||||
# shell: bash
|
|
||||||
|
# - name: Check system info using bash
|
||||||
# run: |
|
# run: |
|
||||||
# echo -e "asdf" > /root/gig
|
# echo "Running on the host machine"
|
||||||
|
# uname -a
|
||||||
|
# which bash
|
||||||
|
# bash --version
|
||||||
|
|
||||||
# - name: write secret to dotenv
|
# - name: List files in the workspace
|
||||||
# working-directory: /usr/share/ansible-repo
|
# run: ls -lsa
|
||||||
# shell: bash
|
|
||||||
|
# - name: Run a simple bash script
|
||||||
# run: |
|
# run: |
|
||||||
# echo -e "{{ runner.os }}"
|
# echo "Hello from Gitea Actions!"
|
||||||
|
# mkdir -p my_output
|
||||||
- name: Checkout repository
|
# echo "This was created by a workflow running on the host." > my_output/output.txt
|
||||||
uses: actions/checkout@v3
|
# shell: bash
|
||||||
|
|
||||||
- name: Check system info using bash
|
|
||||||
run: |
|
|
||||||
echo "Running on the host machine"
|
|
||||||
uname -a
|
|
||||||
which bash
|
|
||||||
bash --version
|
|
||||||
|
|
||||||
- name: List files in the workspace
|
|
||||||
run: ls -lsa
|
|
||||||
|
|
||||||
- name: Run a simple bash script
|
|
||||||
run: |
|
|
||||||
echo "Hello from Gitea Actions!"
|
|
||||||
mkdir -p my_output
|
|
||||||
echo "This was created by a workflow running on the host." > my_output/output.txt
|
|
||||||
shell: bash
|
|
||||||
# - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
# - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||||
# - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
# - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||||
# - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
# - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||||
|
|||||||
Reference in New Issue
Block a user