Skip to content

[Workflow]: Added workflow for automation #3

[Workflow]: Added workflow for automation

[Workflow]: Added workflow for automation #3

name: Promote to stable
on:
issue_comment:
types:
- created
permissions:
issues: write
jobs:
promote-sdk:
name: ⬆️ Promote SDK to stable
environment: "2204 Branch"
runs-on: ubuntu-latest
if: |
( !github.event.issue.pull_request )
&& contains(github.event.comment.body, '/promote ')
&& contains(github.event.comment.body, ''ffmpeg-2204-sdk')
&& contains(github.event.*.labels.*.name, 'testing')
steps:
- name: ⬆️ Promote to stable
uses: snapcrafters/ci/promote-to-stable@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
store-token: ${{ secrets.SNAP_STORE_STABLE }}
snapcraft-project-root: "ffmpeg-2204-sdk"
promote-sdk:

Check failure on line 29 in .github/workflows/promote-to-stable.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/promote-to-stable.yml

Invalid workflow file

You have an error in your yaml syntax on line 29
name: ⬆️ Promote SDK to stable
environment: "2204 Branch"
runs-on: ubuntu-latest
if: |
( !github.event.issue.pull_request )
&& contains(github.event.comment.body, '/promote ')
&& contains(github.event.comment.body, ''ffmpeg-2204 ')
&& contains(github.event.*.labels.*.name, 'testing')
steps:
- name: ⬆️ Promote to stable
uses: snapcrafters/ci/promote-to-stable@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
store-token: ${{ secrets.SNAP_STORE_STABLE }}
snapcraft-project-root: "ffmpeg-2204"