Files
promo_steakhouse/.gitea/workflows/ci.yml
T
2026-08-27 12:56:12 +02:00

33 lines
642 B
YAML

name: Build
on:
push:
branches:
- proof
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check token
env:
TOKEN: ${{ secrets.GITEA_TOKEN }}
run: |
if [ -n "$TOKEN" ]; then
echo "GITEA_TOKEN is present"
else
echo "GITEA_TOKEN is EMPTY"
exit 1
fi
- name: Test Git authentication
env:
TOKEN: ${{ secrets.GITEA_TOKEN }}
run: |
git -c http.extraheader="Authorization: Bearer $TOKEN" \
ls-remote https://git.***-harat.com/OWNER/REPO.git