Skip to content

specify right workflow file #11

specify right workflow file

specify right workflow file #11

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-and-test:
uses: RocketChat/server-snap/.github/workflows/test.yml@${{ github.head_ref || github.ref_name }}

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

View workflow run for this annotation

GitHub Actions / .github/workflows/pr.yaml

Invalid workflow file

invalid value workflow reference: version cannot have whitespace: ${{ github.head_ref || github.ref_name }}
needs: [variables]
with:
tag: ${{ needs.variables.outputs.tag }}
test-only: 'true'