Skip to content

Commit 10451a5

Browse files
committed
Added release test printing the full context
1 parent 298c5fa commit 10451a5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release-event-test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
if: github.event.action == 'published'
3030
runs-on: ubuntu-latest
3131
steps:
32+
- name: Test getting the release URL in a GitHub script
33+
uses: actions/github-script@v3
34+
with:
35+
user-agent: actions/github-script for ${{github.repository}}
36+
script: console.log(context);
3237
- name: Create test file
3338
run: |
3439
echo "Hello, world! ${{github.event.release.name}}" > test.txt
@@ -45,7 +50,7 @@ jobs:
4550
- name: Upload test files
4651
uses: actions/github-script@v3
4752
with:
48-
github-token: ${{secrets.GITHUB_TOKEN}}
53+
#github-token: ${{secrets.GITHUB_TOKEN}}
4954
user-agent: actions/github-script for ${{github.repository}}
5055
script: |
5156
const fs = require('fs').promises;

0 commit comments

Comments
 (0)