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