added show env vars workflow
pipeline / Test (push) Successful in 55s
pipeline / Show (push) Failing after 3s
CI Pipeline / Test (pull_request) Successful in 56s
CI Pipeline / Build and Publish (pull_request) Failing after 4s

This commit is contained in:
Brian Bjarke Jensen
2024-02-25 16:29:07 +01:00
parent 277d647aa1
commit 266f02280d
+20
View File
@@ -0,0 +1,20 @@
name: pipeline
run-name: ${{ gitea.actor }} is running the script
runs-on: ubuntu-latest
on: push
image: python:3.12
jobs:
show:
name: Show
runs-on: ubuntu-latest
steps:
- name: Show Environment Variables
id: vars
run: |
echo "REPOSITORY: ${{ gitea.repository }}"
echo "DOCKER_REPO_URL: ${{ vars.docker_repo_url }}"
echo "COMMIT_SHA: ${{ gitea.sha }}"
echo $(git rev-parse --short ${{ gitea.sha }})
echo "SHA_SHORT=$(git rev-parse --short ${{ gitea.sha }} )"
echo "${ SHA_SHORT }"
echo "${{ gitea.env }}"