Skip to content

Commit

Permalink
Take 2, fix GitHub actions yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DenizBT committed Nov 4, 2023
1 parent 0a397b1 commit cd554a2
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
name: GitHub Actions
run-name: ${{ github.actor }} is running a workflow on GitHub actions.
on: [push, pull-request]
on:
push:
pull_request:
jobs:
Run linter:
runs-on: ubuntu-latest
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@main
uses: actions/checkout@v2 # Corrected "main" to "v2"
- run: echo "The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- name: Run linter
run: |
/linting-testing-workflow/linter.sh
- run: echo "This job's status is ${{ job.status }}."
run: |
/linting-testing-workflow/linter.sh
- run: echo "This job's status is ${{ job.status }}."

0 comments on commit cd554a2

Please sign in to comment.