-
Notifications
You must be signed in to change notification settings - Fork 161
Expand file tree
/
Copy pathcreate_normal_draft_release.yml
More file actions
49 lines (46 loc) · 2.36 KB
/
create_normal_draft_release.yml
File metadata and controls
49 lines (46 loc) · 2.36 KB
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
48
49
name: Create normal draft release
on:
workflow_dispatch:
inputs:
forced_commit_id:
description: 'Force using artifacts from specific commit? If provided, this will try and use the artifacts from the given commit, regardless of build status'
required: false
type: string
ignore_gitlab_failures:
description: "DANGER Force ignoring any issues with the GitLab artifacts or SSI. Don't use this unless you _really_ know what you're doing"
required: false
type: boolean
default: false
jobs:
check_branch:
runs-on: ubuntu-latest
steps:
- name: Verify running on main release branch
run: |
if [[ "${{ github.ref }}" != "refs/heads/master" ]]; then
echo "Error: This workflow can only be run from the following: master"
echo "Current branch: ${{ github.ref }}"
exit 1
fi
create_normal_draft_release:
needs: check_branch
uses: ./.github/workflows/_create_draft_release.yml
# All GitHub API access in the reusable workflow goes through the dd-octo-sts token; see
# .github/chainguard/self.github.create-draft-release.sts.yaml
permissions:
contents: read # actions/checkout uses the workflow token to clone
id-token: write # required for dd-octo-sts OIDC and NuGet trusted publishing
with:
forced_commit_id: ${{ inputs.forced_commit_id }}
ignore_gitlab_failures: ${{ inputs.ignore_gitlab_failures }}
is_hotfix: false
secrets:
AZURE_DEVOPS_TOKEN: ${{ secrets.AZURE_DEVOPS_TOKEN }}
NUGET_TRUSTED_PUBLISHING_USERNAME: ${{ secrets.NUGET_TRUSTED_PUBLISHING_USERNAME }}
DD_PUBLIC_SYMBOL_PREPROD_API_KEY: ${{ secrets.DD_PUBLIC_SYMBOL_PREPROD_API_KEY }}
DD_PUBLIC_SYMBOL_API_KEY_US1: ${{ secrets.DD_PUBLIC_SYMBOL_API_KEY_US1 }}
DD_PUBLIC_SYMBOL_API_KEY_US3: ${{ secrets.DD_PUBLIC_SYMBOL_API_KEY_US3 }}
DD_PUBLIC_SYMBOL_API_KEY_US5: ${{ secrets.DD_PUBLIC_SYMBOL_API_KEY_US5 }}
DD_PUBLIC_SYMBOL_API_KEY_EU1: ${{ secrets.DD_PUBLIC_SYMBOL_API_KEY_EU1 }}
DD_PUBLIC_SYMBOL_API_KEY_AP1: ${{ secrets.DD_PUBLIC_SYMBOL_API_KEY_AP1 }}
DD_PUBLIC_SYMBOL_API_KEY_AP2: ${{ secrets.DD_PUBLIC_SYMBOL_API_KEY_AP2 }}