[Workflow]: Added workflow for automation #3
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: 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: | ||
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" |