Skip to content

Commit

Permalink
Create commitSpecs.yml
Browse files Browse the repository at this point in the history
framework for actions
  • Loading branch information
mo-marqh committed Oct 4, 2023
1 parent da53fe4 commit 98cda4c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/commitSpecs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: commitSpecs

on:
pull_request

jobs:
build:

runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Install dependencies
run: |
echo "dependencies"
- name: Generate content and commit PR branch
run: |
date > thisdate
git add thisdate
if [ -z "$(git status --porcelain)" ];
then echo 'nothing to commit'
else
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git config --global user.name "${{ github.actor }}"
git commit -am 'Github Action Commit'
git push origin HEAD:${{ github.head_ref }}
fi

0 comments on commit 98cda4c

Please sign in to comment.