Skip to content

Commit

Permalink
Fix github pages publish (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjthieme authored Feb 1, 2025
1 parent 202411b commit 8145333
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
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

0 comments on commit 8145333

Please sign in to comment.