From c72f5dbd48ba21ee671e99c43411562584c02ada Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Thu, 9 Jan 2025 20:18:54 -0500 Subject: [PATCH] Test GH Actions `env` context --- .github/workflows/publish-main.yml | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/.github/workflows/publish-main.yml b/.github/workflows/publish-main.yml index 704b5b5..884e89a 100644 --- a/.github/workflows/publish-main.yml +++ b/.github/workflows/publish-main.yml @@ -1,23 +1,14 @@ -name: Publish main +name: Test on: push: - branches: [main] jobs: - publish: + test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: '[node LTS] npm install' - uses: ljharb/actions/node/install@main - with: - node-version: lts/* - - run: npm run build - - name: Publish to gh-pages - uses: JamesIves/github-pages-deploy-action@v4.3.3 - with: - branch: gh-pages - folder: build - clean-exclude: | - pr + - run: echo "CUSTOM_FOO=foo" >> "$GITHUB_ENV" + - env: + CUSTOM_BAR: ${{ env.CUSTOM_FOO }} + CUSTOM_BAZ: "::${{ env.CUSTOM_FOO }}::" + run: "env | grep CUSTOM_"