diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d1c1bb..3963bac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,10 +5,13 @@ on: branches: - master schedule: - - cron: '0 20 * * 0' + - cron: '0 20 * * Sat' push: +env: + GLOBAL_ENV: global_env_value + REPOSITORY_SECRET: ${{ secrets.SECRET_TEST_NAME }} jobs: build: @@ -25,7 +28,7 @@ jobs: # go-version: '1.19.x' # go-version: 'stable' - - name: Build + - name: Build ${{ github.ref_name }} run: go build -v ./... - name: Test @@ -34,5 +37,8 @@ jobs: - name: Use variables run: | echo "repository variable : $REPOSITORY_VAR" + echo "secret var : $REPOSITORY_SECRET" + echo "global env : $GLOBAL_ENV" env: REPOSITORY_VAR: ${{ vars.REPOSITORY_VAR }} + # REPOSITORY_SECRET: ${{ secrets.SECRET_TEST_NAME }}