Suggestion: Fixing a few broken links in the markdown version of the files and some light reorganization #2681
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: Snap | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
concurrency: | |
group: ${{ github.workflow }}-pr${{ github.event.number }} | |
cancel-in-progress: true | |
jobs: | |
mir-libs: | |
runs-on: ubuntu-latest | |
timeout-minutes: 45 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # needed for version determination | |
- name: Build and publish the snap | |
uses: canonical/actions/build-snap@release | |
with: | |
snapcraft-token: ${{ secrets.SNAPCRAFT_TOKEN }} | |
publish: ${{ github.event_name == 'pull_request' && github.repository == github.event.pull_request.head.repo.full_name }} | |
publish-channel: 22/edge/pr${{ github.event.number }} | |
snap: | |
# Only run if we have access to secrets. | |
if: ${{ github.event_name == 'pull_request' && github.repository == github.event.pull_request.head.repo.full_name }} | |
needs: [mir-libs] | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- snap: MirServer/mir-test-tools | |
track: 22 | |
- snap: MirServer/confined-shell-wip | |
track: latest | |
- snap: MirServer/ubuntu-frame | |
track: 22 | |
- snap: Miriway/Miriway | |
track: latest | |
review-opts: --allow-classic | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
repository: ${{ matrix.snap }} | |
ref: mir-libs-build | |
fetch-depth: 0 # needed for version determination | |
- name: Tweak the stage snap | |
run: | | |
sed -i 's@- mir-libs.*$@\0/pr${{ github.event.number }}@' snap/snapcraft.yaml | |
- name: Build and publish the snap | |
uses: canonical/actions/build-snap@release | |
with: | |
review-opts: ${{ matrix.review-opts }} | |
snapcraft-token: ${{ secrets.SNAPCRAFT_TOKEN }} | |
publish: true | |
publish-channel: ${{ matrix.track }}/edge/mir-pr${{ github.event.number }} |