From a4110a362f2fa8ea9235497882cb5de3afc719da Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Wed, 5 Apr 2023 19:17:43 +0300 Subject: [PATCH] Use my own GitHub actions --- .github/workflows/docker.yml | 10 +++++----- .github/workflows/main.yml | 14 ++++++-------- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index dc433aa..f40ec0f 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -39,17 +39,17 @@ jobs: uses: actions/checkout@v3 - name: Get release version - id: get_version - uses: dawidd6/action-get-tag@v1 + id: get-version + uses: tyrrrz/action-get-tag@v1 - name: Login to DockerHub run: docker login -u tyrrrz -p ${{ secrets.DOCKER_TOKEN }} - name: Build container - run: docker build -f DiscordChatExporter.Cli.dockerfile -t tyrrrz/discordchatexporter:stable -t tyrrrz/discordchatexporter:${{ steps.get_version.outputs.tag }} . + run: docker build -f DiscordChatExporter.Cli.dockerfile -t tyrrrz/discordchatexporter:stable -t tyrrrz/discordchatexporter:${{ steps.get-version.outputs.tag }} . - name: Push container (stable) run: docker push tyrrrz/discordchatexporter:stable - - name: Push container (${{ steps.get_version.outputs.tag }}) - run: docker push tyrrrz/discordchatexporter:${{ steps.get_version.outputs.tag }} \ No newline at end of file + - name: Push container (${{ steps.get-version.outputs.tag }}) + run: docker push tyrrrz/discordchatexporter:${{ steps.get-version.outputs.tag }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 68aca40..c318616 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -111,19 +111,17 @@ jobs: steps: - name: Get release version - id: get_version - uses: dawidd6/action-get-tag@v1 + id: get-version + uses: tyrrrz/action-get-tag@v1 - name: Notify Discord - uses: satak/webrequest-action@v1.2.4 + uses: tyrrrz/action-http-request@v1 with: url: ${{ secrets.DISCORD_WEBHOOK }} method: POST headers: | - { - "ContentType": "application/json; charset=UTF-8" - } + ContentType: application/json; charset=UTF-8 payload: | { - "content": "**DiscordChatExporter** new version released!\nVersion: `${{ steps.get_version.outputs.tag }}`\nChangelog: " - } \ No newline at end of file + "content": "**DiscordChatExporter** new version released!\nVersion: `${{ steps.get-version.outputs.tag }}`\nChangelog: " + }