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
bc1131bbdb
commit
5ed3544b16
33
.github/workflows/json-master.yml
vendored
33
.github/workflows/json-master.yml
vendored
@ -41,34 +41,19 @@ jobs:
|
|||||||
ls -las
|
ls -las
|
||||||
./update.sh
|
./update.sh
|
||||||
cd ..
|
cd ..
|
||||||
|
- 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
|
||||||
commit_user_name: stamepicmorg # defaults to "GitHub Actions"
|
commit_user_name: stamepicmorg # defaults to "GitHub Actions"
|
||||||
commit_user_email: stamepicmorg@users.noreply.github.com # defaults to "actions@github.com"
|
commit_user_email: stamepicmorg@users.noreply.github.com # defaults to "actions@github.com"
|
||||||
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: "Run if changes have been detected"
|
||||||
|
if: steps.auto-commit-action.outputs.changes_detected == 'true'
|
||||||
|
run: |
|
||||||
|
echo "Changes!"
|
||||||
|
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
|
||||||
|
|
||||||
# git add .
|
- name: "Run if no changes have been detected"
|
||||||
# git commit -am "Atlassian JSON autoupdated"
|
if: steps.auto-commit-action.outputs.changes_detected == 'false'
|
||||||
# git push
|
run: echo "No Changes!"
|
||||||
# exit 0
|
|
||||||
# - name: Commit and push changes
|
|
||||||
# uses: devops-infra/action-commit-push@master
|
|
||||||
# with:
|
|
||||||
# github_token: ${{ secrets.GHT }}
|
|
||||||
# commit_message: Atlassian JSON updated
|
|
||||||
#
|
|
||||||
# - name: Create Release
|
|
||||||
# id: create_release
|
|
||||||
# uses: actions/create-release@v1
|
|
||||||
# env:
|
|
||||||
# GITHUB_TOKEN: ${{ secrets.GHT }}
|
|
||||||
# with:
|
|
||||||
# tag_name: ${{ env.RELEASE_DATE }}
|
|
||||||
# release_name: Release ${{ env.RELEASE_DATE }}
|
|
||||||
# body: |
|
|
||||||
# Changes in this Release
|
|
||||||
# - Atlassian JSON updated ${{ env.RELEASE_DATE }}
|
|
||||||
# draft: false
|
|
||||||
# prerelease: false
|
|
Loading…
Reference in New Issue
Block a user