diff --git a/.gitea/workflows/first.yaml b/.gitea/workflows/first.yaml index 5f4918b..98dab29 100644 --- a/.gitea/workflows/first.yaml +++ b/.gitea/workflows/first.yaml @@ -1,6 +1,6 @@ name: learn actions run-name: ${{github.actor}} is learning actions -on: [push] +on: [pull] jobs: check-bats-version: runs-on: ubuntu-latest diff --git a/.gitea/workflows/second.yaml b/.gitea/workflows/second.yaml index b42c033..eb82545 100644 --- a/.gitea/workflows/second.yaml +++ b/.gitea/workflows/second.yaml @@ -5,8 +5,10 @@ jobs: print-variables_asd: runs-on: ubuntu-latest steps: + env: + SECRET5: ${{ secrets.SECRET1 }} - run: | - if [ -n ${{ secrets.SECRET1 }} ]; then + if [ -n "$SECRET5" ]; then echo "secret is here" else echo "secret missing"