-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (41 loc) · 1 KB
/
release.yaml
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
41
42
43
44
45
46
name: Release Runner
on:
push:
branches:
- main
paths:
- runners/podman.containerfile
- runners/*
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository_owner }}/actions-runner
jobs:
publish:
concurrency:
group: release
uses: ./.github/workflows/publish-runner.yaml
secrets: inherit
permissions:
contents: write
packages: write
release:
concurrency:
group: release
runs-on: ubuntu-latest
needs: [publish]
permissions:
contents: write
steps:
- uses: cardinalby/git-get-release-action@v1
id: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ needs.publish.outputs.version }}
doNotFailIfNotFound: true
- name: Release (only version once)
uses: ncipollo/release-action@v1
if: steps.release.outputs.id == ''
with:
name: ${{ needs.publish.outputs.version }}
tag: ${{ needs.publish.outputs.tag }}