-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (38 loc) · 1.27 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Release
on:
repository_dispatch:
types: [swiftlint-release]
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Update binary package
run: >
sed -i
-e "s#/[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}/#/${{ github.event.client_payload.tag }}/#"
-e "s/[a-fA-F0-9]\{64\}/${{ github.event.client_payload.checksum }}/"
Package.swift
- name: Configure author
run: |
git config --global user.name SimplyDanny
git config --global user.email null
- name: Commit
run: |
git add Package.swift
git commit -m "Release ${{ github.event.client_payload.tag }}"
- name: Push changes
run: git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: ncipollo/release-action@v1
with:
name: ${{ github.event.client_payload.title }}
tag: ${{ github.event.client_payload.tag }}
body: >
Check out the changes made in the
[SwiftLint release](https://github.com/realm/SwiftLint/releases/tag/${{ github.event.client_payload.tag }})
associated with this version.