Skip to content

Commit a440db3

Browse files
committed
Add test workflow
1 parent 777f917 commit a440db3

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/test-sign.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: "Test signing"
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
environment: Automation
10+
11+
steps:
12+
- name: Dump environment
13+
run: env
14+
15+
- name: Dump GitHub context
16+
env:
17+
GITHUB_CONTEXT: '${{ toJson(github) }}'
18+
run: echo "${GITHUB_CONTEXT}"
19+
20+
- name: Generate token
21+
uses: actions/[email protected]
22+
id: app-token
23+
with:
24+
app-id: ${{ vars.AUTOMATION_APP_ID }}
25+
private-key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
26+
27+
- uses: actions/checkout@v5
28+
with:
29+
token: ${{ steps.app-token.outputs.token }}
30+
fetch-depth: 0 # ensure we have all tags and can push commits
31+
32+
- name: Test signing
33+
shell: bash
34+
run: |
35+
git tag -s --annotate "vTEST" --message "vTEST"
36+
echo "test" > .test
37+
git add .test
38+
git commit -s -m 'Test commit'

0 commit comments

Comments
 (0)