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