Skip to content

debugging

debugging #34

Workflow file for this run

name: Release
on:
pull_request
# workflow_dispatch:
# inputs:
# dryRun:
# description: Perform a dry-run only
# required: false
# type: boolean
# releaseVersion:
# description: Next release version
# required: true
# type: string
# changeLog:
# description: Pending changelog
# required: true
# type: string
jobs:
release:
runs-on: ubuntu-latest
env:
# temporary ENV VARs for input; this is only because workflow_dispatch
# actions can only run on main for some reason
LD_RELEASE_VERSION: 2.14.0
# LD_RELEASE_VERSION: ${{ inputs.releaseVersion }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
# DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
# CIRCLECI_CLI_TOKEN: ${{ secrets.CIRCLECI_CLI_TOKEN }}
# BITBUCKET_USERNAME: ${{ secrets.BITBUCKET_USERNAME }}
# BITBUCKET_TOKEN: ${{ secrets.BITBUCKET_TOKEN }}
DRY_RUN: true
# DRY_RUN: ${{ inputs.dryRun }}
ARTIFACT_DIRECTORY: "/tmp/release-artifacts"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: launchdarkly/gh-actions/actions/ssh-key-by-repo@main
with:
repo_keys_map: |
{

Check failure on line 44 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 44
"launchdarkly/find-code-references" = ${{ toJSON(secrets.LAUNCHDARKLY_FIND_CODE_REFERECES_DEPLOY_KEY) }}
}
# - uses: launchdarkly/gh-actions/actions/[email protected]
# name: Get secrets
# with:
# aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
# s3_path_pairs: '/global/services/docker/public/username = DOCKER_USERNAME, /global/services/docker/public/token = DOCKER_TOKEN, /production/common/releasing/circleci/orb-token= CIRCLECI_CLI_TOKEN, /production/common/releasing/bitbucket/username = BITBUCKET_USERNAME, /production/common/releasing/bitbucket/token = BITBUCKET_TOKEN'
- name: update-version
run: |
./scripts/release/update-version.sh
- name: build
run: |
if [[ $LD_RELEASE_VERSION == v* ]]; then
echo "Remove v prefix from version: $LD_RELEASE_VERSION"
exit 1
fi
make build
- name: publish
run: |
if [[ "$DRY_RUN" = true ]]; then
./scripts/release/publish-dry-run.sh
else
./scripts/release/publish.sh
fi
# create-release:
# runs-on: ubuntu-latest
# permissions:
# contents: write
# needs: release
# steps:
# - uses: ncipollo/[email protected]
# with:
# token: ${{ secrets.BOT_TOKEN }}
# tag: v${{ inputs.releaseVersion }}
# body: ${{ inputs.changeLog }}