mirror of
https://github.com/FlipsideCrypto/tools.git
synced 2026-02-06 10:46:47 +00:00
Managed by Terraform
This commit is contained in:
parent
8e37dcbe6a
commit
acf020028e
33
.github/actions/commit-changes/action.yml
vendored
Normal file
33
.github/actions/commit-changes/action.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
name: 'commit-changes'
|
||||
description: 'Commit changes to the GitHub repository'
|
||||
inputs:
|
||||
github-token:
|
||||
description: 'GitHub token to commit with'
|
||||
required: true
|
||||
commit-message:
|
||||
description: 'Commit message'
|
||||
default: 'Committed automatically during workspace run'
|
||||
required: false
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: nick-fields/retry@v2
|
||||
with:
|
||||
timeout_seconds: 15
|
||||
max_attempts: 3
|
||||
retry_on: error
|
||||
command: |
|
||||
echo "$GITHUB_CONTEXT"
|
||||
git stash -u
|
||||
git checkout "${GITHUB_REF:11}"
|
||||
git pull
|
||||
git stash apply ||:
|
||||
git config --global user.name 'Devops Bot'
|
||||
git config --global user.email 'devops-bot@users.noreply.github.com'
|
||||
git remote set-url origin "git@github.com:${GITHUB_REPOSITORY}.git"
|
||||
|
||||
|
||||
|
||||
git add -A
|
||||
git commit -am "${{ inputs.commit-message }}"
|
||||
git push ||:
|
||||
Loading…
Reference in New Issue
Block a user