From 9bfda3664748fb00d9e6209700d08cf2678e72af Mon Sep 17 00:00:00 2001 From: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun, 2 Apr 2023 08:00:11 -0700 Subject: [PATCH] [skip ci] Log version --- .github/workflows/beta.yml | 11 +++++++---- .github/workflows/nightly.yml | 11 +++++++---- .github/workflows/pr.yml | 7 +++++++ .github/workflows/stable.yml | 11 +++++++---- 4 files changed, 28 insertions(+), 12 deletions(-) diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index 0dec182a..789f866f 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -27,6 +27,13 @@ jobs: - name: Change version to tag run: sed -e '/MARKETING_VERSION = .*/s/= .*/= ${{ github.ref_name }}/' -i '' Build.xcconfig + - name: Get version + id: version + run: echo "version=$(grep MARKETING_VERSION Build.xcconfig | sed -e "s/MARKETING_VERSION = //g")" >> $GITHUB_OUTPUT + + - name: Echo version + run: echo "${{ steps.version.outputs.version }}" + - name: Setup Xcode uses: maxim-lobanov/setup-xcode@v1.4.1 with: @@ -53,10 +60,6 @@ jobs: name: SideStore-dSYM path: ./*.dSYM/ - - name: Get version - id: version - run: echo "version=$(grep MARKETING_VERSION Build.xcconfig | sed -e "s/MARKETING_VERSION = //g")" >> $GITHUB_OUTPUT - - name: Get current date id: date run: echo "date=$(date -u +'%c')" >> $GITHUB_OUTPUT diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 42555c0f..c00ce2fb 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -36,6 +36,13 @@ jobs: - name: Increase nightly build number and set as version run: bash .github/workflows/increase-nightly-build-num.sh + - name: Get version + id: version + run: echo "version=$(grep MARKETING_VERSION Build.xcconfig | sed -e "s/MARKETING_VERSION = //g")" >> $GITHUB_OUTPUT + + - name: Echo version + run: echo "${{ steps.version.outputs.version }}" + - name: Setup Xcode uses: maxim-lobanov/setup-xcode@v1.4.1 with: @@ -62,10 +69,6 @@ jobs: name: SideStore-dSYM path: ./*.dSYM/ - - name: Get version - id: version - run: echo "version=$(grep MARKETING_VERSION Build.xcconfig | sed -e "s/MARKETING_VERSION = //g")" >> $GITHUB_OUTPUT - - name: Get current date id: date run: echo "date=$(date -u +'%c')" >> $GITHUB_OUTPUT diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 9b2211fb..eccf4b0d 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -27,6 +27,13 @@ jobs: env: COMMIT: ${{ github.event.pull_request.head.sha }} + - name: Get version + id: version + run: echo "version=$(grep MARKETING_VERSION Build.xcconfig | sed -e "s/MARKETING_VERSION = //g")" >> $GITHUB_OUTPUT + + - name: Echo version + run: echo "${{ steps.version.outputs.version }}" + - name: Setup Xcode uses: maxim-lobanov/setup-xcode@v1.4.1 with: diff --git a/.github/workflows/stable.yml b/.github/workflows/stable.yml index 7db5cd49..a0d1aeea 100644 --- a/.github/workflows/stable.yml +++ b/.github/workflows/stable.yml @@ -27,6 +27,13 @@ jobs: - name: Change version to tag run: sed -e '/MARKETING_VERSION = .*/s/= .*/= ${{ github.ref_name }}/' -i '' Build.xcconfig + - name: Get version + id: version + run: echo "version=$(grep MARKETING_VERSION Build.xcconfig | sed -e "s/MARKETING_VERSION = //g")" >> $GITHUB_OUTPUT + + - name: Echo version + run: echo "${{ steps.version.outputs.version }}" + - name: Setup Xcode uses: maxim-lobanov/setup-xcode@v1.4.1 with: @@ -53,10 +60,6 @@ jobs: name: SideStore-dSYM path: ./*.dSYM/ - - name: Get version - id: version - run: echo "version=$(grep MARKETING_VERSION Build.xcconfig | sed -e "s/MARKETING_VERSION = //g")" >> $GITHUB_OUTPUT - - name: Get current date id: date run: echo "date=$(date -u +'%c')" >> $GITHUB_OUTPUT