* Fix XSS in runbook URL (#383) * "Release: Updated versions in package to 8.3.8" (#385) * Fix: Choose Lookup params per auth module v8.3.x (#401) * Fix: Choose Lookup params per auth module Co-authored-by: Karl Persson <kalle.persson@grafana.com> Fix: Prefer pointer to struct in lookup Co-authored-by: Karl Persson <kalle.persson@grafana.com> Fix: user email for ldap Co-authored-by: Karl Persson <kalle.persson@grafana.com> Fix: Use only login for lookup in LDAP Co-authored-by: Karl Persson <kalle.persson@grafana.com> Fix: use user email for ldap Co-authored-by: Karl Persson <kalle.persson@grafana.com> fix remaining test fix nit picks * update lock * fix integration tests * [v8.3.x] Merge 'release-8.3.9` branch (#404) * Fix: Choose Lookup params per auth module Co-authored-by: Karl Persson <kalle.persson@grafana.com> Fix: Prefer pointer to struct in lookup Co-authored-by: Karl Persson <kalle.persson@grafana.com> Fix: user email for ldap Co-authored-by: Karl Persson <kalle.persson@grafana.com> Fix: Use only login for lookup in LDAP Co-authored-by: Karl Persson <kalle.persson@grafana.com> Fix: use user email for ldap Co-authored-by: Karl Persson <kalle.persson@grafana.com> fix remaining test fix nit picks (cherry picked from commit 09ca54d4665583b5648fea5726a19e0b58df4ec0) * fix integration tests (cherry picked from commit 16c3077bb39f41acacbef4b13c65c7c907c54de7) * Release: Bump version to 8.3.9 (#403) * Change bump-version.yml * "Release: Updated versions in package to 8.3.9" Co-authored-by: dsotirakis <dimitrios.sotirakis@grafana.com> * Update yarn.lock Co-authored-by: jguer <joao.guerreiro@grafana.com> Co-authored-by: Grot (@grafanabot) <43478413+grafanabot@users.noreply.github.com> * "Release: Updated versions in package to 8.3.10" (#409) * Update grabpl * update grabpl * CI: Update `grabpl` version - remove `--no-pull-enterprise` flag (#47013) * Update grabpl version * Sign drone * Remove --no-pull-enterprise flag * Sign drone * Update grabpl * update drone, cherry-pick some ci updates * update PR pipeline Co-authored-by: George Robinson <george.robinson@grafana.com> Co-authored-by: Grot (@grafanabot) <43478413+grafanabot@users.noreply.github.com> Co-authored-by: Jguer <joao.guerreiro@grafana.com> Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com> Co-authored-by: Kevin Minehart <kmineh0151@gmail.com> Co-authored-by: Dimitris Sotirakis <sotirakis.dim@gmail.com>
62 lines
2.3 KiB
YAML
62 lines
2.3 KiB
YAML
name: Bump version
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
required: true
|
|
default: '8.x.x'
|
|
env:
|
|
YARN_ENABLE_IMMUTABLE_INSTALLS: false
|
|
jobs:
|
|
main:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# This is a basic workflow to help you get started with Actions
|
|
- uses: actions-ecosystem/action-regex-match@v2.0.2
|
|
id: regex-match
|
|
with:
|
|
text: ${{ github.event.inputs.version }}
|
|
regex: '^(\d+.\d+).\d+(?:-beta.\d+)?$'
|
|
|
|
- name: Validate input version
|
|
if: ${{ steps.regex-match.outputs.match == '' }}
|
|
run: |
|
|
echo "The input version format is not correct, please respect:\
|
|
major.minor.patch or major.minor.patch-beta.number format. \
|
|
example: 7.4.3 or 7.4.3-beta.1"
|
|
exit 1
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set intermedia variables
|
|
id: intermedia
|
|
run: |
|
|
echo "::set-output name=short_ref::${GITHUB_REF#refs/*/}"
|
|
echo "::set-output name=check_passed::false"
|
|
echo "::set-output name=branch_name::v${{steps.regex-match.outputs.group1}}"
|
|
echo "::set-output name=branch_exist::$(git ls-remote --heads https://github.com/grafana/grafana.git v${{ steps.regex-match.outputs.group1 }}.x | wc -l)"
|
|
|
|
- name: Check input version is aligned with branch(main)
|
|
if: steps.intermedia.outputs.branch_exist == '0' && !contains(steps.intermedia.outputs.short_ref, 'main')
|
|
run: |
|
|
echo "When you want to deliver a new new minor version, you might want to create a new branch first \
|
|
with naming convention v[major].[minor].x, and just run the workflow on that branch. \
|
|
Run the workflow on main only when needed"
|
|
exit 1
|
|
|
|
- name: Checkout Actions
|
|
uses: actions/checkout@v2
|
|
with:
|
|
repository: "grafana/grafana-github-actions"
|
|
path: ./actions
|
|
ref: main
|
|
- uses: actions/setup-node@v2.4.1
|
|
with:
|
|
node-version: '16'
|
|
- name: Install Actions
|
|
run: npm install --production --prefix ./actions
|
|
- name: Run bump version
|
|
uses: ./actions/bump-version
|
|
with:
|
|
token: ${{secrets.GH_BOT_ACCESS_TOKEN}}
|
|
metricsWriteAPIKey: ${{secrets.GRAFANA_MISC_STATS_API_KEY}}
|