fix: adapt actions to gitea

This commit is contained in:
Franek 2024-05-09 14:33:52 +02:00
parent 3b2eed487a
commit a2e641523a
No known key found for this signature in database
GPG Key ID: 0329F871B2079351

View File

@ -9,22 +9,20 @@ on:
branches: branches:
- 'develop' - 'develop'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - name: Checkout the repository
uses: actions/checkout@v3
- name: Set current date as env variable - name: Set current date as env variable
run: echo "date_today=$(date +'%Y-%m-%d')" >> $GITHUB_ENV run: echo "date_today=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Set ANDROID_HOME - name: Setup Android SDK
run: echo "ANDROID_HOME=/workspace/sadorowo/Android/sdk" >> $GITHUB_ENV uses: android-actions/setup-android@v3
- name: Set repository name as env variable - name: Set repository name as env variable
run: echo "repository_name=$(echo '${{ gitea.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV run: echo "repository_name=$(echo '${{ gitea.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV