Skip to content

Commit

Permalink
Add configure-ssh action
Browse files Browse the repository at this point in the history
  • Loading branch information
andistorm committed Sep 11, 2023
1 parent 7dba22f commit 91dcc8c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test-github-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,17 @@ jobs:
run: |
cat output.txt
test "$(cat output.txt)" = "$(cat everest-ci/.github/workflows/test-github-actions.yaml)"
test-configure-ssh:
runs-on: ubuntu-22.04
steps:
- name: Configure SSH
# LTODO: switch to main branch
uses: everest/everest-ci/github-actions/configure-ssh@feature/add-render-jinja2-action
with:
email: compiler@pionix.de
name: Github Service Account
- name: Test
run: |
git config --list --global
test "$(git config --get user.email)" = "compiler@pionix.de"
test "$(git config --get user.name)" = "Github Service Account"
22 changes: 22 additions & 0 deletions github-actions/configure-ssh/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Configure ssh email and name
description: Configure ssh email and name
inputs:
email:
description: 'Email'
required: true
type: string
name:
description: 'Name'
required: true
type: string
runs:
using: "composite"
steps:
- name: Configure email
shell: bash
run: |
git config --global user.email "${{ inputs.email }}"
- name: Configure name
shell: bash
run: |
git config --global user.name "${{ inputs.name }}"

0 comments on commit 91dcc8c

Please sign in to comment.