diff --git a/.github/workflows/update-main-version.yml b/.github/workflows/update-main-version.yml index 250d046..f414a9a 100644 --- a/.github/workflows/update-main-version.yml +++ b/.github/workflows/update-main-version.yml @@ -16,11 +16,6 @@ jobs: major_version: ${{ steps.get-version.outputs.major_version }} steps: - - name: Dump GitHub context - env: - GITHUB_CONTEXT: ${{ toJSON(github) }} - run: echo "$GITHUB_CONTEXT" - - uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.merge_commit_sha }} @@ -29,17 +24,13 @@ jobs: id: get-version run: | base_sha=${{ github.event.pull_request.base.sha }} - echo $base_sha - git fetch origin $base_sha prev_version=$(git show ${base_sha}:pubspec.yaml | grep 'version:' | cut -d ':' -f2 | sed 's/ //' | cut -d'+' -f1) echo "prev_version=$prev_version" >> $GITHUB_OUTPUT - echo $prev_version full_version=$(cat pubspec.yaml | grep 'version' | cut -d ':' -f2 | sed 's/ //' | cut -d'+' -f1) echo "full_version=$full_version" >> $GITHUB_OUTPUT - echo $full_version major_version=$(echo "$full_version" | cut -d'.' -f1) echo "major_version=$major_version" >> $GITHUB_OUTPUT @@ -49,11 +40,6 @@ jobs: if: needs.validate_version.outputs.prev_version != needs.validate_version.outputs.full_version runs-on: ubuntu-latest steps: - - name: log result - run: | - echo ${{ needs.validate_version.outputs.prev_version }} - echo ${{ needs.validate_version.outputs.full_version }} - - uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.merge_commit_sha }}