docs: add version selection to header #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Preview | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, labeled] | |
jobs: | |
netlify: | |
runs-on: ubuntu-latest | |
steps: | |
# Useful if we try to also integrate other labels | |
# - name: Find comments | |
# id: find_comments | |
# uses: actions-cool/issues-helper@v3 | |
# with: | |
# actions: 'find-comments' | |
# token: ${{ secrets.GITHUB_TOKEN }} | |
# issue-number: ${{ github.event.issue.number }} | |
# comment-auth: 'github-actions[bot]' | |
# body-includes: '🤖 Hello ' | |
# - uses: actions/github-script@v7 | |
# id: filter-comment | |
# env: | |
# COMMENTS_RESULT: ${{ steps.find_comments.outputs.comments }} | |
# with: | |
# script: | | |
# const { COMMENTS_RESULT } = process.env; | |
# const comments = JSON.parse(COMMENTS_RESULT); | |
# if (comments.length === 1) { | |
# return comments[0].id; | |
# } | |
# return ''; | |
# result-encoding: string | |
- name: Debug | |
shell: bash | |
run: echo ${{ contains(github.event.pull_request.labels.*.name, 'Deploy Preview') }} | |
- name: Deploy Preview for PR | |
if: contains(github.event.pull_request.labels.*.name, 'Deploy Preview') | |
shell: bash | |
run: | | |
echo Deploy to netlify | |
# uses: actions-cool/issues-helper@v3 | |
# with: | |
# actions: 'create-comment' | |
# token: ${{ secrets.GITHUB_TOKEN }} | |
# body: | | |
# 🤖 Hello @${{ github.event.issue.user.login }} | |
# Your issue will be analyzed and is part of our internal workflow. | |
# To get informed about our workflow please checkout the [Contributing Guidelines](https://github.com/siemens/ix/blob/main/CONTRIBUTING.md#issue-workflow) | |
# JIRA: IX-000 |