5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 01:43:15 +08:00

chore: update auto workflows (#2555)

* chore: update workflows

* chore: update Taskfile

* chore: add lable to auto-sync pr
This commit is contained in:
Misite Bao 2023-04-07 16:19:14 +08:00 committed by GitHub
parent a998465034
commit 7f1093dc51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 17 deletions

View File

@ -26,5 +26,5 @@ jobs:
add-paths: "website/static/img/contributors.svg" add-paths: "website/static/img/contributors.svg"
title: Update Contributors Image title: Update Contributors Image
body: Generated new image body: Generated new image
branch: update-contributors branch: chore/update-contributors
delete-branch: true delete-branch: true

View File

@ -1,4 +1,4 @@
name: Label sponsors name: Label Sponsors
on: on:
pull_request: pull_request:
types: [opened] types: [opened]
@ -11,5 +11,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: JasonEtco/is-sponsor-label-action@v1 - uses: JasonEtco/is-sponsor-label-action@v1
with:
label: Sponsor ❤️
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -13,8 +13,8 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Verify Changed files - name: Verify Changed files
uses: tj-actions/verify-changed-files@v11.1 id: changed-files
id: verify-changed-files uses: tj-actions/changed-files@v35
with: with:
files: | files: |
website/**/*.mdx website/**/*.mdx
@ -27,7 +27,7 @@ jobs:
node-version: 16.x node-version: 16.x
- name: Push files - name: Push files
if: steps.verify-changed-files.outputs.files_changed == 'true' if: steps.changed-files.outputs.any_changed == 'true'
env: env:
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
run: | run: |

View File

@ -1,4 +1,4 @@
name: Sync Translated Documents name: Sync Translations
on: on:
workflow_dispatch: workflow_dispatch:
@ -23,9 +23,10 @@ jobs:
- name: Create Pull Request - name: Create Pull Request
uses: peter-evans/create-pull-request@v4 uses: peter-evans/create-pull-request@v4
with: with:
commit-message: "docs: sync documents" commit-message: "docs: sync translations"
title: "docs: sync documents" title: "docs: sync translations"
body: "- [x] Sync translated documents" body: "- [x] Sync translated documents"
branch: feature/documents branch: chore/sync-translations
labels: translation
delete-branch: true delete-branch: true
draft: true draft: true

View File

@ -1,20 +1,20 @@
# https://taskfile.dev # https://taskfile.dev
version: '3' version: "3"
vars: vars:
GREETING: Hello, World! GREETING: Hello, World!
tasks: tasks:
check-contributors: contributors:check:
cmds: cmds:
- npx -y all-contributors-cli check - npx -y all-contributors-cli check
update-contributors: contributors:update:
cmds: cmds:
- go run v3/tasks/contribs/main.go - go run v3/tasks/contribs/main.go
build-contributors: contributors:build:
cmds: cmds:
- npx -y all-contributors-cli generate - npx -y all-contributors-cli generate