Skip to content

Commit

Permalink
Merge pull request #18 from syaiful-aa/ci/remove-log
Browse files Browse the repository at this point in the history
remove log
  • Loading branch information
syaiful-aa authored Jun 28, 2024
2 parents 81aca1b + 9e2bfb4 commit 760c73f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/update-main-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 760c73f

Please sign in to comment.