Skip to content

Commit

Permalink
correction
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelwnaylor committed Nov 18, 2024
1 parent 22e4fb1 commit c085f92
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/smarteole_example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
permissions:
contents: write
actions: write
checks: write

env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
Expand Down Expand Up @@ -75,3 +74,22 @@ jobs:
git commit --amend -m"$(git log --format=%B -n1)" -m"smarteole_example.ipynb updated by GitHubAction"
git push --force-with-lease
fi
<<<<<<< HEAD
=======
- name: 'evaluate last commit'
run: |
echo "LAST_COMMIT_AUTHOR=$(git log -1 | grep "Author")" >> $GITHUB_ENV
echo "LAST_COMMIT_ID=$(git log -1 | grep 'commit' | sed 's!commit !!' | head -c 7)" >> $GITHUB_ENV
- name: 'checkout last commit'
uses: actions/checkout@v4
with:
ref: ${{ env.BRANCH_NAME }}

- name: 'trigger workflow dispatch'
if: contains(env.LAST_COMMIT_AUTHOR, 'GitHubAction')
uses: benc-uk/workflow-dispatch@v1
with:
workflow: 'Lint and test'
ref: ${{ env.BRANCH_NAME }}
>>>>>>> origin/quantify-wind-speed-shift

0 comments on commit c085f92

Please sign in to comment.