Skip to content

chore: test ci

chore: test ci #515

Workflow file for this run

# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2023-11-13T10:31:18Z by kres 4060f0b-dirty.
name: default
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
"on":
push:
branches:
- main
- release-*
tags:
- v*
pull_request:
branches:
- main
- release-*
jobs:
default:
permissions:
actions: read
contents: write
issues: read
packages: write
pull-requests: read
runs-on:
- self-hosted
- generic
if: (!startsWith(github.head_ref, 'renovate/') && !startsWith(github.head_ref, 'dependabot/'))
outputs:
labels: ${{ steps.retrieve-pr-labels.outputs.result }}
steps:
- name: checkout
uses: actions/checkout@v4
- name: Retrieve PR labels
id: retrieve-pr-labels
if: github.event_name == 'pull_request' && always()
uses: actions/github-script@v6
with:
# result-encoding: string
retries: "3"
script: |
const resp = await github.rest.issues.get({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
})
const labels = resp.data.labels.map(label => label.name)
return labels
dummy:
runs-on:
- self-hosted
# if: contains(needs.default.outputs.labels, 'integration/e2e') || contains(needs.default.outputs.labels, 'integration/dummy')
needs:
- default
steps:
- name: echo
run: |
echo '${{ contains(fromJSON(needs.default.outputs.labels), 'integration/e2e') }}'