Workflow Failure Attempt to fix 2
Some checks failed
Generate Build Info / build-info (push) Failing after 2s
Some checks failed
Generate Build Info / build-info (push) Failing after 2s
This commit is contained in:
@@ -10,13 +10,16 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Checkout repository
|
||||
run: |
|
||||
git clone https://git.thejthompson.com/williamt/Dapper repo
|
||||
cd repo
|
||||
git checkout main
|
||||
|
||||
- name: Generate build-info.php
|
||||
run: |
|
||||
cd repo
|
||||
|
||||
SHORT_HASH=$(git rev-parse --short HEAD)
|
||||
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
DATE=$(date -u '+%Y-%m-%d %H:%M:%S UTC')
|
||||
@@ -32,16 +35,18 @@ jobs:
|
||||
];
|
||||
EOF
|
||||
|
||||
- name: Commit file
|
||||
- name: Commit build info
|
||||
run: |
|
||||
git config --global user.name "Gitea Runner"
|
||||
git config --global user.email "ampedlease@ampedlease.com"
|
||||
cd repo
|
||||
|
||||
git config user.name "Gitea Runner"
|
||||
git config user.email "runner@thejthompson.com"
|
||||
|
||||
git add dapper/build-info.php
|
||||
|
||||
if git diff --cached --quiet; then
|
||||
echo "No changes to commit"
|
||||
echo "No changes"
|
||||
else
|
||||
git commit -m "auto: update build info [skip ci]"
|
||||
git push
|
||||
git push https://git.thejthompson.com/williamt/Dapper
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user