File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 48
48
env :
49
49
REGISTRY : ghcr.io
50
50
IMAGE : grafana/generate-policy-bot-config
51
- PUSH_IMAGE : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || '' }}
51
+ PUSH_IMAGE : ${{ (github.event_name == 'release' || (github.event_name == ' push' && github.ref == 'refs/heads/main') ) || '' }}
52
52
53
53
steps :
54
54
- name : Checkout
92
92
- name : Extract platform-specific digests
93
93
if : env.PUSH_IMAGE
94
94
id : platform-digests
95
+ shell : bash
95
96
run : |
96
- REGISTRY_REF="${{ steps.calculate-metadata.outputs.tags }}"
97
+ declare -a TAGS
98
+ TAGS=(${{ steps.calculate-metadata.outputs.tags }})
99
+
100
+ REGISTRY_REF="${TAGS[0]}"
97
101
BASE_REF="${REGISTRY_REF%%:*}"
98
102
99
103
# Get digests for each platform
Original file line number Diff line number Diff line change 3
3
branches :
4
4
- main
5
5
6
+ release :
7
+ types :
8
+ - published
9
+
6
10
permissions :
7
11
contents : write
8
12
pull-requests : write
You can’t perform that action at this time.
0 commit comments