From 10451a53115f8cbab066e4033d2ce4ae19f1b1cb Mon Sep 17 00:00:00 2001 From: David Maas Date: Wed, 1 Sep 2021 00:54:48 -0500 Subject: [PATCH] Added release test printing the full context --- .github/workflows/release-event-test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-event-test.yml b/.github/workflows/release-event-test.yml index 3183cf6..b31539f 100644 --- a/.github/workflows/release-event-test.yml +++ b/.github/workflows/release-event-test.yml @@ -29,6 +29,11 @@ jobs: if: github.event.action == 'published' runs-on: ubuntu-latest steps: + - name: Test getting the release URL in a GitHub script + uses: actions/github-script@v3 + with: + user-agent: actions/github-script for ${{github.repository}} + script: console.log(context); - name: Create test file run: | echo "Hello, world! ${{github.event.release.name}}" > test.txt @@ -45,7 +50,7 @@ jobs: - name: Upload test files uses: actions/github-script@v3 with: - github-token: ${{secrets.GITHUB_TOKEN}} + #github-token: ${{secrets.GITHUB_TOKEN}} user-agent: actions/github-script for ${{github.repository}} script: | const fs = require('fs').promises;