Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 0 additions & 6 deletions .github/actions/push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,17 @@ runs:
run: |
git config --global user.name "${{ inputs.user }}"
git config --global user.email "${{ inputs.user }}@users.noreply.github.com"
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
shell: bash
- name: Git Commit
if: ${{ inputs.message != '' }}
run: |
git add .
git commit -m "${{ inputs.message }}"
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
shell: bash
- name: Push Changes
run: |
git push origin ${{ inputs.branch }}
if [ ${{ inputs.tags }} = 'true' ]; then
git push --tags
fi
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
shell: bash
13 changes: 11 additions & 2 deletions .github/actions/ssh/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'SSH'
description: 'Setup ssh key.'
name: 'Git SSH'
description: 'Setup ssh key for github.'

branding:
icon: key
Expand All @@ -9,6 +9,10 @@ inputs:
ssh-key:
description: 'SSH key'
required: true
user:
description: 'Git user name'
required: false
default: 'github-actions[bot]'

runs:
using: "composite"
Expand All @@ -24,3 +28,8 @@ runs:
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add /home/runner/.ssh/github_actions
shell: bash
- name: Setup Git User
run: |
git config --global user.name "${{ inputs.user }}"
git config --global user.email "${{ inputs.user }}@users.noreply.github.com"
shell: bash