Skip to content

fix: attribution typo #1

fix: attribution typo

fix: attribution typo #1

name: Check attribution
on:
pull_request:
branches:
- develop
types:
- opened
- synchronize
jobs:
prepare:
name: Prepare dependencies
runs-on: ubuntu-latest
outputs:
COMMIT_SHA: ${{ steps.commit-sha.outputs.COMMIT_SHA }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install Yarn dependencies
run: yarn --immutable
- name: Get commit SHA
id: commit-sha
run: echo "COMMIT_SHA=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
generate-and-validate-attribution:
name: Generate and Validate Attribution
runs-on: ubuntu-latest
needs:
- prepare
steps:
- name: Checkout repository
uses: actions/checkout@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.issue.number }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies from cache
run: yarn --immutable --immutable-cache
- name: Generate Atribution
run: yarn generate:attribution

Check failure on line 50 in .github/workflows/check-attribution.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/check-attribution.yml

Invalid workflow file

You have an error in your yaml syntax on line 50
- name: Check whether there are attribution changes
run: |
if git diff --exit-code -- attribution.txt
then
echo "No attribution changes. Pipeline succeeded."
else
echo "Attribution have changed. Failing pipeline."
exit 1
fi