CI: Fix git usage inside Flatpak action container

This fix the lack of hash in the Flatpak artifact filename.
master
tytan652 2022-06-26 09:22:22 +02:00 committed by Ryan Foster
parent 68f3a5f37d
commit 3b3b45038f
2 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,7 @@ jobs:
- name: 'Setup build environment'
id: setup
run: |
git config --global --add safe.directory $GITHUB_WORKSPACE
echo "::set-output name=commitHash::$(git rev-parse --short=9 HEAD)"
- name: Build Flatpak Manifest

View File

@ -389,6 +389,7 @@ jobs:
- name: 'Setup build environment'
if: ${{ success() && (github.event_name != 'pull_request' || env.SEEKING_TESTERS == '1') }}
run: |
git config --global --add safe.directory $GITHUB_WORKSPACE
echo "OBS_GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV
echo "OBS_GIT_HASH=$(git rev-parse --short=9 HEAD)" >> $GITHUB_ENV
echo "OBS_GIT_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV