tangled
alpha
login
or
join now
tylur.dev
/
prototypey
prototypey.org - atproto lexicon typescript toolkit - mirror https://github.com/tylersayshi/prototypey
1
fork
atom
overview
issues
pulls
pipelines
use external action for taze-update-action
Tyler
2 months ago
71cba602
fd1b92be
+1
-72
2 changed files
expand all
collapse all
unified
split
.github
actions
taze-update
action.yml
workflows
update-dependencies.yml
-71
.github/actions/taze-update/action.yml
···
1
1
-
description: Automatically update dependencies using taze and create a pull request
2
2
-
3
3
-
name: Taze Update
4
4
-
5
5
-
inputs:
6
6
-
taze-input:
7
7
-
description: "Flags or args to pass to taze we recommend low concurrency with github runners (default: -w --concurrency 1)"
8
8
-
required: false
9
9
-
default: "-w --concurrency 1"
10
10
-
branch-prefix:
11
11
-
description: "Prefix for the branch name (default: chore/update-deps)"
12
12
-
required: false
13
13
-
default: "chore/update-deps"
14
14
-
pr-title:
15
15
-
description: "Title for the pull request"
16
16
-
required: false
17
17
-
default: "chore: update dependencies"
18
18
-
pr-labels:
19
19
-
description: "Comma-separated labels to add to the PR"
20
20
-
required: false
21
21
-
default: "dependencies"
22
22
-
github-token:
23
23
-
description: "GitHub token for creating PRs"
24
24
-
required: true
25
25
-
26
26
-
runs:
27
27
-
using: "composite"
28
28
-
steps:
29
29
-
- name: Install taze
30
30
-
run: pnpm add -g taze@19
31
31
-
shell: bash
32
32
-
33
33
-
- name: Update dependencies
34
34
-
run: |
35
35
-
taze ${{ inputs.taze-input }}
36
36
-
pnpm install --no-frozen-lockfile
37
37
-
shell: bash
38
38
-
39
39
-
- name: Create Pull Request
40
40
-
env:
41
41
-
GH_TOKEN: ${{ inputs.github-token }}
42
42
-
run: |
43
43
-
BRANCH_NAME="${{ inputs.branch-prefix }}-$(date +%m-%d)"
44
44
-
git config user.name "github-actions[bot]"
45
45
-
git config user.email "github-actions[bot]@users.noreply.github.com"
46
46
-
git checkout -b "$BRANCH_NAME"
47
47
-
git add .
48
48
-
if git diff --staged --quiet; then
49
49
-
echo "No dependency updates available"
50
50
-
exit 0
51
51
-
fi
52
52
-
git commit -m "${{ inputs.pr-title }}"
53
53
-
git push origin "$BRANCH_NAME"
54
54
-
55
55
-
PR_LABELS="${{ inputs.pr-labels }}"
56
56
-
LABEL_ARGS=""
57
57
-
if [ -n "$PR_LABELS" ]; then
58
58
-
IFS=',' read -ra LABELS <<< "$PR_LABELS"
59
59
-
for label in "${LABELS[@]}"; do
60
60
-
LABEL_ARGS="$LABEL_ARGS --label $(echo $label | xargs)"
61
61
-
done
62
62
-
fi
63
63
-
64
64
-
gh pr create --title "${{ inputs.pr-title }}" --body "## Automated dependency updates
65
65
-
66
66
-
This PR was automatically generated using taze.
67
67
-
68
68
-
Updates were performed using \`taze ${{ inputs.taze-input }}\`.
69
69
-
70
70
-
Please review the changes carefully before merging." $LABEL_ARGS
71
71
-
shell: bash
+1
-1
.github/workflows/update-dependencies.yml
···
19
19
20
20
- uses: ./.github/actions/prepare
21
21
22
22
-
- uses: ./.github/actions/taze-update
22
22
+
- uses: tylersayshi/taze-update-action@v1
23
23
with:
24
24
taze-input: -rw --concurrency 1
25
25
branch-prefix: update-deps