Skip to content

Commit 4f6e253

Browse files
committed
New data collected at 2026-05-11_00-15-14
1 parent 6447ba4 commit 4f6e253

68 files changed

Lines changed: 585 additions & 236 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

github-actions/data.table/R-CMD-check.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
env:
3838
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
3939
_R_CHECK_RD_CHECKRD_MINLEVEL_: -Inf
40+
_R_CHECK_RD_CONTENTS_VALUE_: 1
4041

4142
steps:
4243
- uses: actions/checkout@v6

github-actions/formattable/R-CMD-check-dev.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
name: Collect deps
2222

2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v6
2525

2626
- uses: ./.github/workflows/rate-limit
2727
with:
@@ -62,7 +62,7 @@ jobs:
6262
fail-fast: false
6363

6464
steps:
65-
- uses: actions/checkout@v4
65+
- uses: actions/checkout@v6
6666

6767
- uses: ./.github/workflows/custom/before-install
6868
if: hashFiles('.github/workflows/custom/before-install/action.yml') != ''
@@ -109,7 +109,7 @@ jobs:
109109
matrix: ${{fromJson(needs.matrix.outputs.matrix)}}
110110

111111
steps:
112-
- uses: actions/checkout@v4
112+
- uses: actions/checkout@v6
113113

114114
- uses: ./.github/workflows/custom/before-install
115115
if: hashFiles('.github/workflows/custom/before-install/action.yml') != ''

github-actions/formattable/R-CMD-check.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
# End custom: services
7272

7373
steps:
74-
- uses: actions/checkout@v4
74+
- uses: actions/checkout@v6
7575
with:
7676
ref: ${{ inputs.ref }}
7777

@@ -272,7 +272,7 @@ jobs:
272272
- rcc-smoke
273273

274274
steps:
275-
- uses: actions/checkout@v4
275+
- uses: actions/checkout@v6
276276
with:
277277
ref: ${{ needs.rcc-smoke.outputs.sha }}
278278

@@ -302,7 +302,7 @@ jobs:
302302
matrix: ${{fromJson(needs.rcc-smoke.outputs.versions-matrix)}}
303303

304304
steps:
305-
- uses: actions/checkout@v4
305+
- uses: actions/checkout@v6
306306
with:
307307
ref: ${{ needs.rcc-smoke.outputs.sha }}
308308

@@ -364,7 +364,7 @@ jobs:
364364
matrix: ${{fromJson(needs.rcc-smoke.outputs.dep-suggests-matrix)}}
365365

366366
steps:
367-
- uses: actions/checkout@v4
367+
- uses: actions/checkout@v6
368368

369369
- uses: ./.github/workflows/custom/before-install
370370
if: hashFiles('.github/workflows/custom/before-install/action.yml') != ''

github-actions/formattable/commit-suggest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
shell: bash
2323

2424
- name: Checkout PR
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v6
2626
with:
2727
ref: ${{ github.event.workflow_run.head_sha }}
2828

github-actions/formattable/copilot-setup-steps.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ on:
66
workflow_dispatch:
77
push:
88
paths:
9-
- .github/workflows/copilot-setup-steps.yml
9+
- .github/workflows/copilot-setup-steps.yaml
1010
pull_request:
1111
paths:
12-
- .github/workflows/copilot-setup-steps.yml
12+
- .github/workflows/copilot-setup-steps.yaml
1313

1414
jobs:
1515
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
@@ -26,7 +26,7 @@ jobs:
2626
# If you do not check out your code, Copilot will do this for you.
2727
steps:
2828
- name: Checkout code
29-
uses: actions/checkout@v5
29+
uses: actions/checkout@v6
3030
- uses: ./.github/workflows/custom/before-install
3131
if: hashFiles('.github/workflows/custom/before-install/action.yml') != ''
3232

Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
name: fledge
2+
3+
on:
4+
# for manual triggers
5+
workflow_dispatch:
6+
inputs:
7+
pr:
8+
description: "Create PR"
9+
required: false
10+
type: boolean
11+
default: false
12+
push:
13+
branches:
14+
- main
15+
- master
16+
paths:
17+
- ".github/workflows/fledge.yaml"
18+
# daily run
19+
schedule:
20+
- cron: "30 0 * * *"
21+
22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || '' }}-${{ github.base_ref || '' }}
24+
cancel-in-progress: true
25+
26+
jobs:
27+
check_news:
28+
runs-on: ubuntu-24.04
29+
outputs:
30+
should_run: ${{ steps.check.outputs.should_run }}
31+
steps:
32+
# Fetch NEWS.md via API instead of full checkout for speed
33+
- name: Check if not forked and NEWS.md mentions fledge
34+
id: check
35+
env:
36+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
run: |
38+
set -euxo pipefail
39+
40+
# Check if repo is not forked
41+
is_forked=$(gh api repos/${{ github.repository }} | jq .fork)
42+
if [ "$is_forked" == "true" ]; then
43+
echo "Repository is a fork. Skipping fledge workflow."
44+
exit 0
45+
fi
46+
47+
# Special case: duckdb and igraph
48+
if [[ "${{ github.repository }}" == 'krlmlr/duckdb-r' ]]; then
49+
echo "Repository is krlmlr/duckdb-r. Skipping fledge workflow."
50+
exit 0
51+
fi
52+
53+
if [[ "${{ github.repository }}" == 'krlmlr/rigraph' ]]; then
54+
echo "Repository is krlmlr/rigraph. Skipping fledge workflow."
55+
exit 0
56+
fi
57+
58+
# Fetch NEWS.md content via API without full checkout
59+
gh api repos/${{ github.repository }}/contents/NEWS.md --jq .content 2>/dev/null | base64 -d > /tmp/news.md || true
60+
61+
if [ ! -s /tmp/news.md ]; then
62+
echo "NEWS.md not found. Skipping fledge workflow."
63+
exit 0
64+
fi
65+
66+
# Read first line of NEWS.md and check if it mentions fledge
67+
news_content=$(head -n 1 /tmp/news.md)
68+
if ! [[ "$news_content" == *"fledge"* ]]; then
69+
echo "NEWS.md does not mention fledge. Skipping fledge workflow."
70+
exit 0
71+
fi
72+
73+
echo "should_run=true" >> $GITHUB_OUTPUT
74+
shell: bash
75+
76+
fledge:
77+
runs-on: ubuntu-24.04
78+
needs: check_news
79+
if: needs.check_news.outputs.should_run == 'true'
80+
permissions:
81+
contents: write
82+
pull-requests: write
83+
actions: write
84+
env:
85+
FLEDGE_GHA_CI: true
86+
steps:
87+
- uses: actions/checkout@v6
88+
with:
89+
fetch-depth: 0
90+
fetch-tags: true
91+
92+
- uses: ./.github/workflows/git-identity
93+
94+
- name: Update apt
95+
run: |
96+
sudo apt-get update
97+
shell: bash
98+
99+
- uses: ./.github/workflows/install
100+
with:
101+
pak-version: devel
102+
packages: cynkra/fledge
103+
cache-version: fledge-1
104+
105+
- name: Count rulesets
106+
# Assume that branch is protected if ruleset exists
107+
id: rulesets
108+
env:
109+
GH_TOKEN: ${{ github.token }}
110+
run: |
111+
n_rulesets=$(gh api repos/${{ github.repository }}/rulesets -q length)
112+
echo "count=${n_rulesets}" >> $GITHUB_OUTPUT
113+
shell: bash
114+
115+
- name: Switch to branch if branch protection is enabled
116+
if: github.ref_protected == 'true' || inputs.pr == 'true' || steps.rulesets.outputs.count > 0
117+
run: |
118+
git checkout -b fledge
119+
git push -f -u origin HEAD
120+
shell: bash
121+
122+
- name: Bump version
123+
env:
124+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
125+
run: |
126+
check_default_branch <- ("${{ github.ref_protected == 'true' || inputs.pr == 'true' || steps.rulesets.outputs.count > 0 }}" != "true")
127+
if (fledge::bump_version(which = "dev", no_change_behavior = "noop", check_default_branch = check_default_branch)) {
128+
fledge::finalize_version(push = TRUE)
129+
}
130+
shell: Rscript {0}
131+
132+
- name: Create and merge PR if branch protection is enabled
133+
if: github.ref_protected == 'true' || inputs.pr == 'true' || steps.rulesets.outputs.count > 0
134+
env:
135+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
136+
run: |
137+
set -ex
138+
if [ -n "$(git diff main --numstat)" ]; then
139+
gh pr create --base main --head fledge --fill-first
140+
gh workflow run rcc -f ref=$(git rev-parse HEAD)
141+
gh pr merge --squash --auto
142+
else
143+
echo "No changes."
144+
fi
145+
shell: bash
146+
147+
- name: Check release
148+
env:
149+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
150+
run: |
151+
fledge:::release_after_cran_built_binaries()
152+
shell: Rscript {0}

github-actions/formattable/format-suggest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
pull-requests: write
3232

3333
steps:
34-
- uses: actions/checkout@v4
34+
- uses: actions/checkout@v6
3535
with:
3636
ref: ${{ github.event.pull_request.head.sha }}
3737

github-actions/formattable/pkgdown.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
# End custom: services
2727

2828
steps:
29-
- uses: actions/checkout@v4
29+
- uses: actions/checkout@v6
3030

3131
- uses: ./.github/workflows/rate-limit
3232
with:

github-actions/formattable/pr-commands.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
env:
1212
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v6
1515
- uses: r-lib/actions/pr-fetch@v2
1616
with:
1717
repo-token: ${{ secrets.GITHUB_TOKEN }}
@@ -48,7 +48,7 @@ jobs:
4848
env:
4949
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
5050
steps:
51-
- uses: actions/checkout@v4
51+
- uses: actions/checkout@v6
5252
- uses: r-lib/actions/pr-fetch@v2
5353
with:
5454
repo-token: ${{ secrets.GITHUB_TOKEN }}

github-actions/formattable/revdep.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
curl -s --header "authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/rate_limit
3030
shell: bash
3131

32-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@v6
3333

34-
# FIXME: Avoid reissuing succesful jobs
34+
# FIXME: Avoid reissuing successful jobs
3535
# https://docs.github.com/en/free-pro-team@latest/rest/reference/actions#list-jobs-for-a-workflow-run
3636
# https://docs.github.com/en/free-pro-team@latest/rest/reference/actions#workflow-runs
3737
- id: set-matrix
@@ -91,7 +91,7 @@ jobs:
9191
curl -s --header "authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/rate_limit
9292
shell: bash
9393

94-
- uses: actions/checkout@v4
94+
- uses: actions/checkout@v6
9595

9696
# Begin custom: before install
9797
# End custom: before install
@@ -201,7 +201,7 @@ jobs:
201201

202202
- name: Upload check results
203203
if: failure()
204-
uses: actions/upload-artifact@main
204+
uses: actions/upload-artifact@v5
205205
with:
206206
name: ${{ matrix.package }}-results
207207
path: revdep/${{ matrix.package }}

0 commit comments

Comments
 (0)