Update name

This commit is contained in:
Aurélien Mino 2020-04-25 12:02:57 +02:00
parent 0b34dbe633
commit 55127c774c

View file

@ -1,7 +1,10 @@
name: Release new version(s) name: Release new version(s)
on: [push] on:
push:
branches:
- master-merge-actions
jobs: jobs:
changes: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -19,14 +22,26 @@ jobs:
npx prettier --write README.md npx prettier --write README.md
- name: Update version of modified userscripts - name: Update version of modified userscripts
run: | run: |
MODIFIED_USER_SCRIPTS=$(echo ${{ steps.file_changes.outputs.files_modified }} | tr ' ' '\n' | grep 'user.js') set -x
./tools/update_version.py $MODIFIED_USER_SCRIPTS # MODIFIED_USER_SCRIPTS=$(echo "${{ steps.file_changes.outputs.files_modified }}" | tr " " "\n" | grep "user.js")
npx prettier --write $MODIFIED_USER_SCRIPTS MODIFIED_USER_SCRIPTS=$(echo "${{ steps.file_changes.outputs.files_modified }}")
echo "MODIFIED_USER_SCRIPTS: $MODIFIED_USER_SCRIPTS"
MODIFIED_USER_SCRIPTS=$(echo "$MODIFIED_USER_SCRIPTS" | sed 's/\s/\n/g')
echo "MODIFIED_USER_SCRIPTS: $MODIFIED_USER_SCRIPTS"
MODIFIED_USER_SCRIPTS=$(echo "$MODIFIED_USER_SCRIPTS" | grep "user.js")
echo "MODIFIED_USER_SCRIPTS: $MODIFIED_USER_SCRIPTS"
if [[ $MODIFIED_USER_SCRIPTS != "" ]]
then
./tools/update_version.py $MODIFIED_USER_SCRIPTS
npx prettier --write $MODIFIED_USER_SCRIPTS
fi
echo "done"
- name: Commit changes - name: Commit changes
run: | run: |
git config --local user.email "action@github.com" git config --local user.email "action@github.com"
git config --local user.name "GitHub Action" git config --local user.name "GitHub Action"
git commit -m "Release" -a git commit -m "Release" -a
# - name: Push changes # - name: Push changes
# uses: ad-m/github-push-action@master # uses: ad-m/github-push-action@master
# with: # with: