Skip to content

Commit

Permalink
clean up sed
Browse files Browse the repository at this point in the history
  • Loading branch information
abuchanan-airbyte committed Aug 29, 2024
1 parent 856288e commit 6666561
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/hello_world.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ jobs:
ref: 'refs/tags/${{ inputs.tag_name }}',
sha: context.sha
})
- name: Get the version
id: get_version
run: echo "ABCTL_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
fetch-depth: 0
Expand All @@ -53,13 +50,13 @@ jobs:
ssh-key: ${{ secrets.ABCTL_HOMEBREW_KEY }}
- name: Replace version
run: |
sed -i 's/ABCTL_VERSION = ".*"/ABCTL_VERSION = ${{ inputs.tag_name }}/' Formula/abctl.rb
sed -i 's/ABCTL_VERSION = ".*"/ABCTL_VERSION = "${{ inputs.tag_name }}"/' Formula/abctl.rb
- name: Show diff
run: git diff
- name: Commit changes
run: |
git config user.email "[email protected]"
git config user.name "abctl release action"
git commit -a -m "Update abctl to $ABCTL_VERSION"
git commit -a -m "Update abctl to ${{ inputs.tag_name }}"
- name: Push change
run: git push

0 comments on commit 6666561

Please sign in to comment.