Skip to content

Commit f12badb

Browse files
committed
Merge branch 'master' into record-size-limit
2 parents 8d06dd9 + 83c4c5f commit f12badb

File tree

4,016 files changed

+684069
-100084
lines changed

Some content is hidden

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

4,016 files changed

+684069
-100084
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Adjust snapshot build number
2+
description: Adjust snapshot build number
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- id: adjust-snapshot-buildno
8+
if:
9+
github.repository == 'FirebirdSQL/firebird' &&
10+
(github.ref_type == 'branch' &&
11+
(github.ref_name == 'master' ||
12+
(startsWith(github.ref_name, 'v') && endsWith(github.ref_name, '-release'))
13+
)
14+
) ||
15+
false
16+
shell: sh
17+
run: |
18+
sed -i'' -e "s/SuffixKind=\(.*\)/SuffixKind=\"$(echo ${{ github.sha }} | cut -c 1-7)\"/" src/misc/writeBuildNum.sh
19+
mkdir gen
20+
src/misc/writeBuildNum.sh rebuildHeader
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: Create release
2+
description: Create release
3+
4+
inputs:
5+
token:
6+
description: Token
7+
required: true
8+
deletePatterns:
9+
description: Pattern to delete old assets
10+
required: true
11+
uploadFiles:
12+
description: Files to upload
13+
required: true
14+
15+
runs:
16+
using: composite
17+
steps:
18+
- name: Get release info
19+
id: release-info
20+
if: github.event.head_commit.message == 'increment build number' || github.ref_type == 'tag'
21+
uses: ./.github/actions/release-info
22+
23+
- name: Delete old assets
24+
uses: mknejp/delete-release-assets@v1
25+
if: steps.release-info.outputs.artifacts-tag && github.ref_type != 'tag'
26+
with:
27+
repository: ${{
28+
(steps.release-info.outputs.artifacts-repository != github.repository &&
29+
steps.release-info.outputs.artifacts-repository) ||
30+
null
31+
}}
32+
token: ${{
33+
(steps.release-info.outputs.artifacts-repository != github.repository &&
34+
inputs.token) ||
35+
github.token
36+
}}
37+
tag: ${{ steps.release-info.outputs.artifacts-tag }}
38+
fail-if-no-release: false
39+
fail-if-no-assets: false
40+
assets: ${{ inputs.deletePatterns }}
41+
42+
- name: Release
43+
id: release_try1
44+
uses: softprops/action-gh-release@master
45+
if: steps.release-info.outputs.artifacts-tag
46+
continue-on-error: true
47+
with:
48+
repository: ${{
49+
(steps.release-info.outputs.artifacts-repository != github.repository &&
50+
steps.release-info.outputs.artifacts-repository) ||
51+
null
52+
}}
53+
token: ${{
54+
(steps.release-info.outputs.artifacts-repository != github.repository &&
55+
inputs.token) ||
56+
github.token
57+
}}
58+
name: ${{ steps.release-info.outputs.artifacts-tag-description }}
59+
tag_name: ${{ steps.release-info.outputs.artifacts-tag }}
60+
prerelease: true
61+
overwrite_files: github.ref_type != 'tag'
62+
files: ${{ inputs.uploadFiles }}
63+
64+
- name: Release (retry)
65+
uses: softprops/action-gh-release@master
66+
if: |
67+
steps.release-info.outputs.artifacts-tag &&
68+
steps.release_try1.outcome == 'failure'
69+
with:
70+
repository: ${{
71+
(steps.release-info.outputs.artifacts-repository != github.repository &&
72+
steps.release-info.outputs.artifacts-repository) ||
73+
null
74+
}}
75+
token: ${{
76+
(steps.release-info.outputs.artifacts-repository != github.repository &&
77+
inputs.token) ||
78+
github.token
79+
}}
80+
name: ${{ steps.release-info.outputs.artifacts-tag-description }}
81+
tag_name: ${{ steps.release-info.outputs.artifacts-tag }}
82+
prerelease: true
83+
overwrite_files: github.ref_type != 'tag'
84+
files: ${{ inputs.uploadFiles }}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Get Release Notes
2+
description: Get Release Notes
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: Get release info
8+
id: release-info
9+
uses: ./.github/actions/release-info
10+
11+
- id: filename
12+
if: steps.release-info.outputs.version
13+
shell: bash
14+
run: |
15+
echo "filename=Firebird-${{ steps.release-info.outputs.version }}-ReleaseNotes.pdf" >> $GITHUB_OUTPUT
16+
17+
- id: copy-release-notes-file
18+
if: steps.filename.outputs.filename
19+
shell: bash
20+
run: |
21+
(cd doc && curl -OL https://firebirdsql.org/file/documentation/release_notes/${{ steps.filename.outputs.filename }})
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Get release info
2+
description: Get release info
3+
4+
outputs:
5+
version:
6+
description: Version
7+
value: ${{ steps.version.outputs.version }}
8+
artifacts-repository:
9+
description: Artifacts repository
10+
value: ${{ steps.artifacts-repository.outputs.artifacts-repository }}
11+
artifacts-tag:
12+
description: Artifacts tag
13+
value: ${{ steps.artifacts-tag.outputs.tag }}
14+
artifacts-tag-description:
15+
description: Artifacts tag description
16+
value: ${{ steps.artifacts-tag.outputs.tag-description }}
17+
18+
runs:
19+
using: composite
20+
steps:
21+
- id: version
22+
if: github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
23+
shell: bash
24+
run: |
25+
version=$(echo ${{ github.ref_name }} | cut -c2-)
26+
echo "version=$version" >> $GITHUB_OUTPUT
27+
28+
- id: artifacts-repository
29+
if: github.repository == 'FirebirdSQL/firebird'
30+
shell: bash
31+
run: |
32+
repository=${{
33+
(github.ref_type == 'tag' && startsWith(github.ref_name, 'v') && github.repository) ||
34+
(github.ref_type == 'branch' &&
35+
(github.ref_name == 'master' ||
36+
(startsWith(github.ref_name, 'v') && endsWith(github.ref_name, '-release'))
37+
) &&
38+
'FirebirdSQL/snapshots'
39+
) ||
40+
''
41+
}}
42+
echo "artifacts-repository=$repository" >> $GITHUB_OUTPUT
43+
44+
- id: artifacts-tag
45+
if: steps.artifacts-repository.outputs.artifacts-repository
46+
shell: bash
47+
run: |
48+
tag=${{
49+
(github.ref_type == 'tag' && github.ref_name) ||
50+
format('snapshot-{0}', github.ref_name)
51+
}}
52+
echo "tag=$tag" >> $GITHUB_OUTPUT
53+
54+
tag_description="${{
55+
(github.ref_type == 'tag' && github.ref_name) ||
56+
format('Latest snapshots for {0}', github.ref_name)
57+
}}"
58+
echo "tag-description=$tag_description" >> $GITHUB_OUTPUT

.github/workflows/changelog-generator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: Generate ChangeLog
17-
uses: asfernandes/changelog-generator@v1
17+
uses: asfernandes/changelog-generator@v2
1818
with:
1919
fix-version-label: "fix-version: ${{ github.event.inputs.version }}"
2020
token: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: increment-build-number
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 20 * * *'
7+
8+
jobs:
9+
increment-build-number:
10+
if: github.repository == 'FirebirdSQL/firebird'
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
token: ${{ secrets.FIREBIRD_INC_BUILDNUM }}
17+
persist-credentials: true
18+
fetch-depth: 0
19+
20+
- name: Configure git
21+
run: |
22+
git config --local user.email "[email protected]"
23+
git config --local user.name "GitHub Action"
24+
25+
- name: Run setupBuildNum.sh
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.FIREBIRD_INC_BUILDNUM }}
28+
run: |
29+
sh setupBuildNum.sh

0 commit comments

Comments
 (0)