Skip to content

Commit 5f7b222

Browse files
committed
fix
1 parent 88572ee commit 5f7b222

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

.github/workflows/gem-build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
type: string
1717
default: '["x64-mingw32", "x64-mingw-ucrt", "x86_64-darwin", "arm64-darwin", "x86_64-linux", "x86_64-linux-gnu", "x86_64-linux-musl", "aarch64-linux", "aarch64-linux-gnu", "aarch64-linux-musl", "any"]'
1818

19+
permissions:
20+
contents: read
21+
packages: write
22+
1923
env:
2024
BUNDLER_VER: latest
2125

@@ -94,7 +98,7 @@ jobs:
9498
- uses: actions/upload-artifact@v6
9599
if: failure()
96100
with:
97-
name: build-logs-${{ matrix.platform }}
101+
name: build-logs-${{ github.run_number }}-${{ matrix.platform }}
98102
path: tmp/*/ports/*/*/*.log
99103

100104
- if: matrix.platform != 'any' && !startsWith(matrix.platform, 'aarch64-')
@@ -110,11 +114,11 @@ jobs:
110114
111115
- uses: actions/upload-artifact@v6
112116
with:
113-
name: ${{ matrix.platform }}-pkg
117+
name: ${{ github.run_number }}-${{ matrix.platform }}-pkg
114118
path: pkg/*.gem
115119

116120
- if: matrix.platform != 'any'
117121
uses: actions/upload-artifact@v6
118122
with:
119-
name: lib-${{ matrix.platform }}
123+
name: lib-${{ github.run_number }}-${{ matrix.platform }}
120124
path: lib/ffi-libarchive-binary/libarchive.*

.github/workflows/metanorma.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ concurrency:
1111
group: '${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.ref_name }}'
1212
cancel-in-progress: true
1313

14+
permissions:
15+
contents: read
16+
1417
env:
1518
BUNDLER_VER: latest
1619

@@ -39,7 +42,7 @@ jobs:
3942
- uses: actions/download-artifact@v7
4043
with:
4144
path: pkg
42-
pattern: '*-pkg'
45+
pattern: '${{ github.run_number }}-*-pkg'
4346
merge-multiple: true
4447

4548
- name: Setup ffi-libarchive-binary

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
tags: [ 'v*' ]
66
workflow_dispatch:
77

8+
permissions:
9+
contents: write
10+
packages: write
11+
12+
813
env:
914
BUNDLER_VER: latest
1015

@@ -23,7 +28,7 @@ jobs:
2328
- uses: actions/download-artifact@v7
2429
with:
2530
path: pkg
26-
pattern: '*-pkg'
31+
pattern: '${{ github.run_number }}-*-pkg'
2732
merge-multiple: true
2833

2934
- name: Publish to rubygems.org

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ concurrency:
1313
env:
1414
BUNDLER_VER: latest
1515

16+
permissions:
17+
contents: read
18+
packages: write
19+
1620
jobs:
1721
build:
1822
name: Build gems
@@ -79,7 +83,7 @@ jobs:
7983

8084
- uses: actions/download-artifact@v7
8185
with:
82-
name: lib-${{ matrix.platform }}
86+
name: lib-${{ github.run_number }}-${{ matrix.platform }}
8387
path: lib/ffi-libarchive-binary
8488

8589
- run: bundle exec rspec

0 commit comments

Comments
 (0)