Skip to content

Commit 51af369

Browse files
authored
Update CI (#97)
1 parent b2fc5bd commit 51af369

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Validate release PR
17-
uses: edgedb/action-release/validate-pr@master
17+
uses: edgedb/action-release/validate-pr@bae6b9134e872166b43d218dd79397c851c41c9a
1818
id: checkver
1919
with:
2020
require_team: Release Managers
@@ -37,7 +37,7 @@ jobs:
3737
mkdir -p dist/
3838
echo "${VERSION}" > dist/VERSION
3939
40-
- uses: actions/upload-artifact@v2
40+
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
4141
with:
4242
name: dist
4343
path: dist/
@@ -47,20 +47,20 @@ jobs:
4747
runs-on: ubuntu-latest
4848

4949
steps:
50-
- uses: actions/checkout@v2
50+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
5151
with:
5252
fetch-depth: 50
5353
submodules: true
5454

5555
- name: Set up Python
56-
uses: actions/setup-python@v2
56+
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
5757

5858
- name: Build source distribution
5959
run: |
6060
python -m pip install -U setuptools wheel pip
6161
python setup.py sdist
6262
63-
- uses: actions/upload-artifact@v2
63+
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
6464
with:
6565
name: dist
6666
path: dist/*.tar.*
@@ -99,18 +99,18 @@ jobs:
9999
PIP_DISABLE_PIP_VERSION_CHECK: 1
100100

101101
steps:
102-
- uses: actions/checkout@v2
102+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
103103
with:
104104
fetch-depth: 50
105105
submodules: true
106106

107107
- name: Set up QEMU
108108
if: matrix.os == 'ubuntu-latest' && matrix.cibw_arch == 'aarch64'
109-
uses: docker/setup-qemu-action@v1
109+
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
110110
with:
111111
platforms: arm64
112112

113-
- uses: pypa/cibuildwheel@v2.9.0
113+
- uses: pypa/cibuildwheel@fff9ec32ed25a9c576750c91e06b410ed0c15db7 # v2.16.2
114114
env:
115115
CIBW_BUILD_VERBOSITY: 1
116116
CIBW_BUILD: ${{ matrix.cibw_python }}
@@ -120,7 +120,7 @@ jobs:
120120
CIBW_TEST_COMMAND_WINDOWS: "python {project}\\tests\\__init__.py"
121121
CIBW_TEST_SKIP: "*universal2:arm64"
122122

123-
- uses: actions/upload-artifact@v2
123+
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
124124
with:
125125
name: dist
126126
path: wheelhouse/*.whl
@@ -130,12 +130,12 @@ jobs:
130130
runs-on: ubuntu-latest
131131

132132
steps:
133-
- uses: actions/checkout@v2
133+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
134134
with:
135135
fetch-depth: 5
136136
submodules: false
137137

138-
- uses: actions/download-artifact@v2
138+
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
139139
with:
140140
name: dist
141141
path: dist/
@@ -148,7 +148,7 @@ jobs:
148148
rm dist/VERSION
149149
150150
- name: Merge and tag the PR
151-
uses: edgedb/action-release/merge@master
151+
uses: edgedb/action-release/merge@bae6b9134e872166b43d218dd79397c851c41c9a
152152
with:
153153
github_token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
154154
ssh_key: ${{ secrets.RELEASE_BOT_SSH_KEY }}
@@ -157,7 +157,7 @@ jobs:
157157
tag_name: v${{ steps.relver.outputs.version }}
158158

159159
- name: Publish Github Release
160-
uses: elprans/gh-action-create-release@master
160+
uses: elprans/gh-action-create-release@5f9abb8f0677196a76ea77e64341fa8ca31dad4f
161161
env:
162162
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
163163
with:
@@ -171,7 +171,7 @@ jobs:
171171
ls -al dist/
172172
173173
- name: Upload to PyPI
174-
uses: pypa/gh-action-pypi-publish@master
174+
uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e # v1.8.10
175175
with:
176176
user: __token__
177177
password: ${{ secrets.PYPI_TOKEN }}

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
PIP_DISABLE_PIP_VERSION_CHECK: 1
2222

2323
steps:
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
2525
with:
2626
fetch-depth: 50
2727
submodules: true
2828

2929
- name: Check if release PR.
30-
uses: edgedb/action-release/validate-pr@master
30+
uses: edgedb/action-release/validate-pr@bae6b9134e872166b43d218dd79397c851c41c9a
3131
id: release
3232
with:
3333
github_token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
@@ -37,7 +37,7 @@ jobs:
3737
__version__\s*=\s*(?:['"])([[:PEP440:]])(?:['"])
3838
3939
- name: Set up Python ${{ matrix.python-version }}
40-
uses: actions/setup-python@v2
40+
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
4141
if: steps.release.outputs.version == 0
4242
with:
4343
python-version: ${{ matrix.python-version }}

0 commit comments

Comments
 (0)