How long take time until release our commited code?
it's like lead-time in one of Four Keys
- you have "release" branch
- you have "devlelop" branch
- you merge "develop" => "release" branch by PR when we deploy to production as usual
this PR code spent "6 hours" until deliver to prodcution.
- "simple-lead-time-action" branch create automatically when first trigger
- adding new record when each trigger
- you can disable this feature if don't need it. ENABLE_SAVE_HISTORY_FILE=false
on:
push:
branches:
- main
jobs:
lead-time:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Find Lead Time
id: lead-time
uses: d-kanai/lead-time-action@v1.1.1
env:
PERSONAL_ACCESS_TOKEN_FOR_GITHUB_API: ${{secrets.PERSONAL_ACCESS_TOKEN_FOR_GITHUB_API}}
REPOSITORY_NAME: ${{github.repository}}
ENABLE_SAVE_HISTORY_FILE: true
GITHUB_USER: d-kanai
RELEASE_BRANCH_NAME: main
- name: Show lead-time output
run: echo "${{ steps.lead-time.outputs.lead-time }}"
- name: Show history-link output
run: echo "${{ steps.lead-time.outputs.history-link }}"
this action usualy trigger by "release" branch push.