mirror of
https://github.com/EpicMorg/atlassian-json.git
synced 2024-12-28 15:45:34 +03:00
Update json-master.yml
This commit is contained in:
parent
2f54ce04ea
commit
b96a989a72
13
.github/workflows/json-master.yml
vendored
13
.github/workflows/json-master.yml
vendored
@ -18,9 +18,6 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# - name: Get current date
|
|
||||||
# id: date
|
|
||||||
# run: echo "RELEASE_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -44,7 +41,7 @@ jobs:
|
|||||||
./update.sh
|
./update.sh
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# - name: Commit changes
|
- name: Commit changes
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
with:
|
with:
|
||||||
commit_message: Atlassian JSON Autoupdated
|
commit_message: Atlassian JSON Autoupdated
|
||||||
@ -53,13 +50,13 @@ jobs:
|
|||||||
commit_author: stamepicmorg <stamepicmorg@users.noreply.github.com> # defaults to author of the commit that triggered the run
|
commit_author: stamepicmorg <stamepicmorg@users.noreply.github.com> # defaults to author of the commit that triggered the run
|
||||||
|
|
||||||
- name: "Notify if changes have been detected"
|
- name: "Notify if changes have been detected"
|
||||||
if: steps.auto-commit-action.outputs.changes_detected == true
|
if: steps.auto-commit-action.outputs.changes_detected == 'true'
|
||||||
run: |
|
run: |
|
||||||
echo "Changes! Notify!"
|
echo "Changes! Notify!"
|
||||||
curl -s --data-urlencode -X POST ${{ secrets.TLG_URL }} -d chat_id=${{ secrets.TLG_CHAT }} -d text="${{ secrets.TLG_TEXT }}" -d "parse_mode=HTML" >> /dev/null
|
curl -s --data-urlencode -X POST ${{ secrets.TLG_URL }} -d chat_id=${{ secrets.TLG_CHAT }} -d text="${{ secrets.TLG_TEXT }}" -d "parse_mode=HTML" >> /dev/null
|
||||||
|
|
||||||
- name: "Tag new version if changes have been detected"
|
- name: "Tag new version if changes have been detected"
|
||||||
if: steps.auto-commit-action.outputs.changes_detected == true
|
if: steps.auto-commit-action.outputs.changes_detected == 'true'
|
||||||
id: "tag"
|
id: "tag"
|
||||||
uses: "anothrNick/github-tag-action@1.30.0"
|
uses: "anothrNick/github-tag-action@1.30.0"
|
||||||
env:
|
env:
|
||||||
@ -69,7 +66,7 @@ jobs:
|
|||||||
DEFAULT_BUMP: patch
|
DEFAULT_BUMP: patch
|
||||||
|
|
||||||
- name: "Create release if changes have been detected"
|
- name: "Create release if changes have been detected"
|
||||||
if: steps.auto-commit-action.outputs.changes_detected == true
|
if: steps.auto-commit-action.outputs.changes_detected == 'true'
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GHT }}
|
GITHUB_TOKEN: ${{ secrets.GHT }}
|
||||||
@ -80,6 +77,6 @@ jobs:
|
|||||||
body: "Update stubs"
|
body: "Update stubs"
|
||||||
|
|
||||||
- name: "Do nothing if no changes have been detected"
|
- name: "Do nothing if no changes have been detected"
|
||||||
if: steps.auto-commit-action.outputs.changes_detected == false
|
if: steps.auto-commit-action.outputs.changes_detected == 'false'
|
||||||
run: echo "No Changes!"
|
run: echo "No Changes!"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user