Skip to content

ci: revamp standard #20

ci: revamp standard

ci: revamp standard #20

Workflow file for this run

name: Build and test snap
on:
pull_request:
branches: '**'
jobs:
variables:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.vars.outputs.tag }}
steps:
- uses: actions/checkout@v3
- id: vars
shell: bash
run: |
tag="$(awk -F: '/version/ { print $2 }' snap/snapcraft.yaml | tr -d '[:space:]')"
echo "tag: $tag"
echo "tag=$tag" >> $GITHUB_OUTPUT
build:
needs:
- variables
uses: RocketChat/server-snap/.github/workflows/build.yml@develop

Check failure on line 24 in .github/workflows/pr.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/pr.yaml" -> "RocketChat/server-snap/.github/workflows/build.yml@develop" : failed to fetch workflow: workflow was not found.
with:
tag: ${{ needs.variables.outputs.tag }}
test:
# uses: RocketChat/server-snap/.github/workflows/test.yml@${{ github.head_ref || github.ref_name }}
uses: RocketChat/server-snap/.github/workflows/test.yml@develop
needs: [build, variables]
with:
tag: ${{ needs.variables.outputs.tag }}
snap-artifact-key: ${{ needs.build.outputs.snap-artifact-key }}
snap-basename: ${{ needs.build.outputs.snap-basename }}
secrets:
snapcraft-credential: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}