Commit 6707ba01 authored by Anas Mazouni's avatar Anas Mazouni
Browse files

Fix bump version

hotfix

fix release CI
parent fe0ce845
name: Release
on: [push]
on:
push:
tags:
- '*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Extract tag name
id: tag
uses: actions/github-script@0.2.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
return context.payload.ref.replace(/\/refs\/tags\//, '');
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF:10}
- name: Echo version
run: echo ${{ steps.tag.outputs.result }}
run: echo ${{ env.RELEASE_VERSION }}
- name: Create local changes
run: |
ls -lart
python3 helper/clean.py
python3 helper/bump.py ${{ steps.tag.outputs.result }}
python3 helper/bump.py ${{ env.RELEASE_VERSION }}
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m "Automated release changes" -a
- name: Push changes
if: github.ref == 'refs/heads/master'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment