-
Notifications
You must be signed in to change notification settings - Fork 451
38 lines (31 loc) · 928 Bytes
/
test-sign.yml
File metadata and controls
38 lines (31 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: "Test signing"
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
environment: Automation
steps:
- name: Dump environment
run: env
- name: Dump GitHub context
env:
GITHUB_CONTEXT: '${{ toJson(github) }}'
run: echo "${GITHUB_CONTEXT}"
- name: Generate token
uses: actions/create-github-app-token@v2.1.1
id: app-token
with:
app-id: ${{ vars.AUTOMATION_APP_ID }}
private-key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
- uses: actions/checkout@v5
with:
token: ${{ steps.app-token.outputs.token }}
fetch-depth: 0 # ensure we have all tags and can push commits
- name: Test signing
shell: bash
run: |
git tag -s --annotate "vTEST" --message "vTEST"
echo "test" > .test
git add .test
git commit -s -m 'Test commit'