From 6c2d9d8497e1c6d6996efe1059a707932d1d72d8 Mon Sep 17 00:00:00 2001 From: daisuke harato Date: Sun, 25 Aug 2024 11:36:04 +0900 Subject: [PATCH] add --- .github/workflows/env.yaml | 12 ++++++++++++ .github/workflows/test.yaml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/env.yaml 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