Skip to content

New IronSource SDK version #10

New IronSource SDK version

New IronSource SDK version #10

name: Update version of the extension in a file
on:
release:
types:
- published
jobs:
update_version:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Update version in ext.properties
run: |
sed -i.bak 's/version\.default =.*/version.default = ${{ github.event.release.tag_name }}/' extension-ironsource/ext.properties
rm extension-ironsource/ext.properties.bak
- name: Commit files
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -a -m "Change version in ext.properties"
- name: Push changes
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
force: true
tags: true