Skip to content

Commit 2ce1007

Browse files
ci: Labels and MSRV tuning (#47)
Continuation of #46, which I reverted Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 6519b28 commit 2ce1007

File tree

6 files changed

+42
-95
lines changed

6 files changed

+42
-95
lines changed

.github/assets/msrv-badge.svg

Lines changed: 1 addition & 1 deletion
Loading

.github/labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
changelog-updated:
2+
- CHANGELOG.md
3+
4+
msrv-updated:
5+
- .github/assets/msrv-badge.svg

.github/workflows/ci.yml

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -38,71 +38,6 @@ jobs:
3838
- uses: Swatinem/rust-cache@v1
3939
- name: cargo check - ${{ matrix.cargo_checks.name }}
4040
run: cargo ${{ matrix.cargo_checks.subcommand }}
41-
#generate_changelog:
42-
# name: Generate changelog
43-
# runs-on: ubuntu-latest
44-
# steps:
45-
# - name: Checkout
46-
# uses: actions/checkout@v2
47-
# with:
48-
# fetch-depth: 0
49-
# - name: Install Rust
50-
# uses: actions-rs/toolchain@v1
51-
# with:
52-
# toolchain: stable
53-
# profile: minimal
54-
# override: true
55-
# - uses: Swatinem/rust-cache@v1
56-
# with:
57-
# key: changelog
58-
# - name: Generate a changelog
59-
# uses: orhun/git-cliff-action@v1
60-
# id: git-cliff
61-
# with:
62-
# config: cliff.toml
63-
# args: --verbose
64-
# env:
65-
# OUTPUT: CHANGELOG-generated.md
66-
# - name: Print the changelog
67-
# run: cat "${{ steps.git-cliff.outputs.changelog }}"
68-
# - name: Upload generated CHANGELOG
69-
# uses: actions/upload-artifact@v2
70-
# with:
71-
# name: CHANGELOG-generated
72-
# path: CHANGELOG-generated.md
73-
# retention-days: 1
74-
75-
#commit_changelog:
76-
# name: Commit changelog
77-
# #if: github.event_name == 'push' && github.ref == 'refs/heads/staging'
78-
# needs:
79-
# - ci
80-
# - generate_changelog
81-
# runs-on: ubuntu-latest
82-
# steps:
83-
# - name: Checkout
84-
# uses: actions/checkout@v2
85-
# with:
86-
# fetch-depth: 0
87-
# - name: Git branch name
88-
# id: git-branch-name
89-
# uses: EthanSK/git-branch-name-action@v1
90-
# - name: Echo the branch name
91-
# run: echo "Branch name ${GIT_BRANCH_NAME}"
92-
# - name: Download generated CHANGELOG
93-
# uses: actions/download-artifact@v2
94-
# with:
95-
# name: CHANGELOG-generated
96-
# path: /tmp
97-
# - name: Copy over changelog
98-
# run: cp /tmp/CHANGELOG-generated.md CHANGELOG.md
99-
# - uses: EndBug/add-and-commit@v9
100-
# with:
101-
# add: CHANGELOG.md
102-
# new_branch: ${{ env.GIT_BRANCH_NAME }}
103-
# #new_branch: staging
104-
# default_author: github_actions
105-
# message: "[skip ci] Update CHANGELOG from Github Actions"
10641

10742
update-project-stuff:
10843
if: github.event_name == 'push' && github.ref == 'refs/heads/staging'

.github/workflows/lint_pr.yml renamed to .github/workflows/triage_pr.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Lint PR"
1+
name: "Triage PR"
22

33
on:
44
pull_request_target:
@@ -8,7 +8,7 @@ on:
88
- synchronize
99

1010
jobs:
11-
main:
11+
validate_pr_title:
1212
name: Validate PR title
1313
runs-on: ubuntu-latest
1414
steps:
@@ -19,3 +19,14 @@ jobs:
1919
ignoreLabels: |
2020
bot-updated
2121
ignore-semantic-pull-request
22+
label_pr:
23+
name: Label Pull Request
24+
runs-on: ubuntu-latest
25+
permissions:
26+
contents: read
27+
pull-requests: write
28+
steps:
29+
- uses: actions/labeler@v4
30+
with:
31+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
32+
sync-labels: true

0 commit comments

Comments
 (0)