This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
Update Android #393
This file contains 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: Tag Release | |
on: | |
pull_request: | |
types: | |
- closed | |
branches: | |
- 'main' | |
jobs: | |
tag_release: | |
if: ${{ github.event.pull_request.merged == true && startsWith( github.head_ref, 'version-' ) }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🧮 Checkout code | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.PAT }} | |
- name: Get Version | |
uses: mad9000/actions-find-and-replace-string@3 | |
id: get-version | |
with: | |
source: ${{ github.head_ref }} | |
find: 'version-' | |
replace: '' | |
- name: Add Tag | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.PAT }} | |
custom_tag: ${{steps.get-version.outputs.value}} | |
tag_prefix: '' |