diff --git a/.gitea/workflows/generate-build-info.yml b/.gitea/workflows/generate-build-info.yml index b9c6f77..20669c1 100644 --- a/.gitea/workflows/generate-build-info.yml +++ b/.gitea/workflows/generate-build-info.yml @@ -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