[36] update GitHub actions (#2090)

pull/2089/head
meisnate12 7 months ago committed by GitHub Action
parent 2c980e99b1
commit 9a768a77bf

@ -14,9 +14,17 @@ jobs:
id: date
run: echo "year=$(date +'%Y')" >> $GITHUB_OUTPUT
- name: Create App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_TOKEN }}
- name: Check Out Repo
uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}
ref: nightly
- name: Update Copyright

@ -1,4 +1,4 @@
name: Docker Develop Release
name: Docker Develop Build
on:
push:
@ -6,7 +6,7 @@ on:
jobs:
docker-build:
docker-build-develop:
runs-on: ubuntu-latest
steps:
@ -73,7 +73,7 @@ jobs:
commit-notification:
runs-on: ubuntu-latest
needs: [ docker-build ]
needs: [ docker-build-develop ]
if: ${{ success() }}
steps:

@ -1,4 +1,4 @@
name: Docker Latest Release
name: Docker Latest Build
on:
push:
@ -6,7 +6,7 @@ on:
jobs:
docker-build:
docker-build-latest:
runs-on: ubuntu-latest
steps:

@ -1,14 +1,14 @@
name: Docker Nightly Release
name: Docker Nightly Build
on:
workflow_run:
workflows: ["Release New Version"]
workflows: ["Master Release"]
types:
- completed
jobs:
docker-build:
docker-build-nightly:
runs-on: ubuntu-latest
steps:

@ -1,4 +1,4 @@
name: Docker Version Release
name: Docker Version Build
on:
create:
@ -7,7 +7,7 @@ on:
jobs:
docker-build:
docker-build-version:
if: ${{ startsWith(github.ref, 'refs/tags/v1') || startsWith(github.ref, 'refs/tags/v2') }}
runs-on: ubuntu-latest
steps:

@ -1,4 +1,4 @@
name: Update Build Version
name: Increment Build
on:
pull_request:
@ -6,7 +6,7 @@ on:
types: [closed]
jobs:
increment-version:
increment-build:
runs-on: ubuntu-latest
if: github.base_ref == 'nightly' && github.event.pull_request.merged
outputs:
@ -62,7 +62,7 @@ jobs:
verify-changes:
runs-on: ubuntu-latest
needs: [ increment-version ]
needs: [ increment-build ]
outputs:
build: ${{ steps.list-changes.outputs.build }}
steps:
@ -89,9 +89,9 @@ jobs:
fi
done
docker-build:
docker-build-nightly:
runs-on: ubuntu-latest
needs: [ increment-version, verify-changes ]
needs: [ increment-build, verify-changes ]
if: needs.verify-changes.outputs.build == 'true'
steps:
@ -158,7 +158,7 @@ jobs:
commit-notification:
runs-on: ubuntu-latest
needs: [ increment-version, verify-changes, docker-build ]
needs: [ increment-build, verify-changes, docker-build-nightly ]
if: ${{ success() && needs.verify-changes.outputs.build == 'true' }}
steps:
@ -166,9 +166,9 @@ jobs:
uses: Kometa-Team/discord-notifications@master
with:
webhook_id_token: ${{ secrets.NIGHTLY_WEBHOOK }}
title: Kometa ${{ needs.increment-version.outputs.version }} Build ${{ needs.increment-version.outputs.build-value }}
url: https://github.com/Kometa-Team/Kometa/commit/${{ needs.increment-version.outputs.commit-hash }}
description: ${{ needs.increment-version.outputs.commit-msg }}
title: Kometa ${{ needs.increment-build.outputs.version }} Build ${{ needs.increment-build.outputs.build-value }}
url: https://github.com/Kometa-Team/Kometa/commit/${{ needs.increment-build.outputs.commit-hash }}
description: ${{ needs.increment-build.outputs.commit-msg }}
message: "<@&967002147520675840> - An update to Kometa has now been published and is available to users of the **nightly** branch."
color: ${{ vars.COLOR_SUCCESS }}
username: ${{ vars.BOT_NAME }}

@ -1,10 +1,10 @@
name: Merge Nightly into Develop
name: Develop Release
on:
workflow_dispatch:
jobs:
merge-develop:
release-develop:
runs-on: ubuntu-latest
steps:
@ -80,3 +80,30 @@ jobs:
exit 1
fi
done
- name: Discord Success Notification
uses: Kometa-Team/discord-notifications@master
if: success()
with:
webhook_id_token: ${{ secrets.BUILD_WEBHOOK }}
title: "${{ vars.REPO_NAME }} develop pushed to Build ${{ vars.DEVELOP_BUILD }}: ${{ vars.TEXT_SUCCESS }}"
url: https://github.com/Kometa-Team/${{ vars.REPO_NAME }}/actions/runs/${{ github.run_id }}
color: ${{ vars.COLOR_SUCCESS }}
username: ${{ vars.BOT_NAME }}
avatar_url: ${{ vars.BOT_IMAGE }}
author: ${{ vars.GIT_NAME }}
author_icon_url: ${{ vars.GIT_IMAGE }}
- name: Discord Failure Notification
uses: Kometa-Team/discord-notifications@master
if: failure()
with:
webhook_id_token: ${{ secrets.BUILD_WEBHOOK }}
message: ${{ vars.BUILD_FAILURE_ROLE }}
title: "${{ vars.REPO_NAME }} develop pushed to Build ${{ vars.DEVELOP_BUILD }}: ${{ vars.TEXT_FAILURE }}"
url: https://github.com/Kometa-Team/${{ vars.REPO_NAME }}/actions/runs/${{ github.run_id }}
color: ${{ vars.COLOR_FAILURE }}
username: ${{ vars.BOT_NAME }}
avatar_url: ${{ vars.BOT_IMAGE }}
author: ${{ vars.GIT_NAME }}
author_icon_url: ${{ vars.GIT_IMAGE }}

@ -1,10 +1,10 @@
name: Release New Version
name: Master Release
on:
workflow_dispatch:
jobs:
merge-master:
release-master:
runs-on: ubuntu-latest
steps:
@ -44,3 +44,30 @@ jobs:
git push origin nightly
git push origin refs/heads/nightly:refs/heads/develop
git push origin refs/heads/nightly:refs/heads/main
- name: Discord Success Notification
uses: Kometa-Team/discord-notifications@master
if: success()
with:
webhook_id_token: ${{ secrets.BUILD_WEBHOOK }}
title: "${{ vars.REPO_NAME }} master release ${{ vars.NEXT_VERSION }}: ${{ vars.TEXT_SUCCESS }}"
url: https://github.com/Kometa-Team/${{ vars.REPO_NAME }}/actions/runs/${{ github.run_id }}
color: ${{ vars.COLOR_SUCCESS }}
username: ${{ vars.BOT_NAME }}
avatar_url: ${{ vars.BOT_IMAGE }}
author: ${{ vars.GIT_NAME }}
author_icon_url: ${{ vars.GIT_IMAGE }}
- name: Discord Failure Notification
uses: Kometa-Team/discord-notifications@master
if: failure()
with:
webhook_id_token: ${{ secrets.BUILD_WEBHOOK }}
message: ${{ vars.BUILD_FAILURE_ROLE }}
title: "${{ vars.REPO_NAME }} master release ${{ vars.NEXT_VERSION }}: ${{ vars.TEXT_FAILURE }}"
url: https://github.com/Kometa-Team/${{ vars.REPO_NAME }}/actions/runs/${{ github.run_id }}
color: ${{ vars.COLOR_FAILURE }}
username: ${{ vars.BOT_NAME }}
avatar_url: ${{ vars.BOT_IMAGE }}
author: ${{ vars.GIT_NAME }}
author_icon_url: ${{ vars.GIT_IMAGE }}

@ -1,4 +1,4 @@
name: Release
name: Release Notification
on:
release:

@ -29,7 +29,7 @@ jobs:
- name: Run Spellcheck
uses: rojopolis/spellcheck-github-actions@0.36.0
docker-build:
docker-build-pull:
runs-on: ubuntu-latest
needs: [ validate-pull ]
if: contains(github.event.pull_request.labels.*.name, 'docker')

@ -1 +1 @@
2.0.1-build35
2.0.1-build36

Loading…
Cancel
Save