update dockcross-gradle-plugin to 0.4.3 for hopefully better selinux … #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update Readme | |
| on: | |
| push: | |
| tags: [ 'v*.*.*.*' ] | |
| workflow_dispatch: | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-tags: 'true' | |
| fetch-depth: '0' | |
| - name: Update Readme | |
| run: | | |
| branch='main' | |
| git checkout "$branch" | |
| git pull | |
| tag="$(git rev-list --tags='v*.*.*.*' --max-count=1)" | |
| if [ -z "$tag" ] | |
| then | |
| echo "No version tag found!" >&2 | |
| exit 1 | |
| fi | |
| if ! tag="$(git describe --tags "$tag")" | |
| then | |
| echo "Tagged commit could not be described!" >&2 | |
| exit 1 | |
| fi | |
| tag="${tag#v}" | |
| sed -i -r "s/([:>])[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+([\"<])/\1$tag\2/g" README.md | |
| git add README.md | |
| git config --global user.name "GitHub Workflow" | |
| git config --global user.email "libdatachannel-java@pschichtel.github.io" | |
| if git commit -m 'Update versions in README.md' | |
| then | |
| git push origin "$branch" | |
| fi |