mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-15 12:42:27 +00:00
Update name
This commit is contained in:
parent
0b34dbe633
commit
55127c774c
1 changed files with 20 additions and 5 deletions
25
.github/workflows/release.yml
vendored
25
.github/workflows/release.yml
vendored
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue