diff --git a/.github/workflows/env.yaml b/.github/workflows/env.yaml new file mode 100644 index 0000000..c23596b --- /dev/null +++ b/.github/workflows/env.yaml @@ -0,0 +1,12 @@ +name: Enviroment variables +on: push +jobs: + run: + runs-on: ubuntu-latest + env: + BRANCH: main + steps: + - run: echo "${BRANCH}" + - uses: actions/checkout@v4 + with: + ref: ${{ env.BRANCH }} \ No newline at end of file diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 9b2bb0d..452552a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -5,4 +5,4 @@ jobs: runs-on: ubuntu-latest steps: - run: echo "Hello world" - - uses: actions/checkout@v4 \ No newline at end of file + - run: echo "${{ github.actor }}" \ No newline at end of file