Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/test-sign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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'
Loading