Skip to content

Commit

Permalink
Update deploy_script.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Heistergand committed Aug 13, 2023
1 parent e18a222 commit f67906b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/deploy_script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ on:
push:
branches:
- master
- beta

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set URL for master branch
if: github.ref == 'refs/heads/master'
Expand All @@ -24,4 +23,11 @@ jobs:
sed -i "s|IITC plugin: Fan Fields 2 (beta)|IITC plugin: Fan Fields 2|" iitc_plugin_fanfields2.user.js iitc_plugin_fanfields2.meta.js
fi
sed -E -i "s/^\/\/\s*@version\s+(\d+)\.(\d+)\.(\d+)\.(\d+)/\1.\2.\3/" iitc_plugin_fanfields2.user.js iitc_plugin_fanfields2.meta.js
- name: Commit and push changes
run: |
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
git config --local user.name "${{ github.actor }}"
git add .
git commit -m "Update files from GitHub Action"
git push

0 comments on commit f67906b

Please sign in to comment.