+3
-19
@@ -11,27 +11,11 @@ permissions:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
token: ${{ secrets.GITEA_TOKEN }}
|
||||
persist-credentials: true
|
||||
|
||||
- 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.lukas-harat.com/lukas/promo_steakhouse.git
|
||||
# rest of your steps
|
||||
|
||||
Reference in New Issue
Block a user