Skip to content

Commit

Permalink
Try something new
Browse files Browse the repository at this point in the history
  • Loading branch information
jthompson-arcus committed May 3, 2024
1 parent f9c42e1 commit 1c5b3e1
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/write-manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,21 @@ on:

jobs:
write-manifest:
if: github.event.review.state == 'approved'
# if: github.event.review.state == 'approved'
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0

- name: Check up-to-date
run: |
if ! git merge-base --is-ancestor origin/dev @;
then echo "This branch is not up to date with dev";
exit 1; fi
- uses: r-lib/actions/setup-r@v2
with:
Expand All @@ -35,13 +41,6 @@ jobs:
run: |
git config --local user.name "Github Actions"
git config --local user.email "actions@github.com"
if git merge-base --is-ancestor dev @
then
echo "Branch is up to date"
else
echo "::error:: Branch is NOT up to date with dev"
exit 1
fi
git add manifest.json || echo "WARN: manifest.json was not updated"
git commit -m 'Re-build manifest file' || echo "No changes to commit"
git push origin || echo "No changes to commit"

0 comments on commit 1c5b3e1

Please sign in to comment.