-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (42 loc) · 1.36 KB
/
nightly.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
41
42
43
44
45
46
47
name: Nightly Release
permissions:
id-token: write
contents: write
packages: write
on:
push:
branches:
- main
jobs:
check-dependabot-commits:
name: Check if dependabot commits exist
outputs:
isDependabot: ${{ steps.check-dependabot.outputs.dependabotExists }}
runs-on: ubuntu-latest
steps:
- name: Check if dependabot commits exist
id: check-dependabot
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "dependabotExists=$(echo $GITHUB_CONTEXT | jq '.event.commits[0].author | any(. == "dependabot[bot]")')" >> $GITHUB_OUTPUT
delete-tag:
runs-on: ubuntu-latest
needs: check-dependabot-commits
if: ${{needs.check-dependabot-commits.outputs.isDependabot == 'false'}}
steps:
- name: Delete release
uses: dev-drprasad/delete-tag-and-release@82600feb9527126eca69833f07bafe53279bd9b4 #v1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
delete_release: true
tag_name: 2.0.0-nightly
nightly:
needs: delete-tag
if: ${{needs.check-dependabot-commits.outputs.isDependabot == 'false'}}
uses: Checkmarx/ast-visual-studio-extension/.github/workflows/release.yml@main
with:
tag: "2.0.0-nightly"
dev: true
cliTag: "2.0.0-nightly"
secrets: inherit