Skip to content

Commit

Permalink
update github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
folarin oyenuga committed Jun 13, 2024
1 parent bf787bf commit 5ea08dd
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions cmd/annotations-checker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,33 +35,33 @@ The GitHub Actions workflow will automatically run the checker for pull requests
```yaml
name: Annotations Checker
on:
pull_request:
on:
pull_request:
branches:
- main
- annotations-checker
jobs:
validate-annotations:
name: Validate Annotations
runs-on: ubuntu-latest
steps:
jobs:
validate-annotations:
name: Validate Annotations
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Check out code
uses: actions/checkout@v3
- name: Build Docker image
run: docker build -t annotations-checker .
- name: Build Docker image
run: docker build -t annotations-checker -f cmd/annotations-checker/Dockerfile .
- uses: actions/github-script@v7
name: Get Diff Url
id: get-diff-url
with:
script: |
echo "DIFF_URL=${context.payload.pull_request.diff_url}" >> $GITHUB_OUTPUT
- uses: actions/github-script@v7
name: Get Diff Url
id: get-diff-url
with:
script: |
echo "DIFF_URL=${context.payload.pull_request.diff_url}" >> $GITHUB_OUTPUT
- name: Run Validation in Docker Container
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: docker run --rm -e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} -e DIFF_URL=${{ steps.get-diff-url.outputs.DIFF_URL }} annotations-checker
- name: Run Validation in Docker Container
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: docker run --rm -e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} -e DIFF_URL=${{ steps.get-diff-url.outputs.DIFF_URL }} annotations-checker
```

0 comments on commit 5ea08dd

Please sign in to comment.