Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/pull_request_closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,23 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

increment_git_tag:
name: Increment Git Tag
runs-on: macos-latest
needs: update_github_pages
if: github.event.pull_request.merged == true
steps:

# checkout repo so can run `git tag`
- uses: actions/checkout@v4
- name: Push the tag
run: |
cd mysite
ls main/
ls -1 main/draft-yn-netmod-yang-xml-[0-9][0-9].xml
TAG=`ls -1 main/draft-yn-netmod-yang-xml-[0-9][0-9].xml | sed -e 's/\.xml$//'`
echo "TAG=$TAG"
git tag $TAG
git push --tags

8 changes: 6 additions & 2 deletions .github/workflows/pull_request_updated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ jobs:
- name: checklist
env:
COMMENT: |
# All of the following must be verified before merging to `main`.
# All of the following MUST be verified by AUTHORS before merging to `main`:
- [ ] Updated "IANA Considerations" section, or N/A?
- [ ] Updated "Security Considerations" section, or N/A?
- [ ] Updated "Normative/Informational References" sections, or N/A?
- [ ] Updated "Acknowledgements" section, or N/A? (Not GitHub users)

# The following MUST be verified by the EDITOR before merging to `main`:
- [ ] The XML artifact uploads to Datatracker?

GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr comment https://github.com/netmod-wg/yang-xml/pull/${{github.event.number}} --body "$COMMENT"

Expand Down Expand Up @@ -137,7 +141,7 @@ jobs:
with:
issue-number: ${{github.event.number}}
comment-author: 'github-actions[bot]'
body-includes: 'All of the following must be verified before merging to `main`.'
body-includes: 'All of the following MUST be verified by AUTHORS before merging to `main`:'
- run: |
if ${{ contains(steps.fc.outputs.comment-body, '[ ] Updated') }} ; then
echo "All checklist items must be selected."
Expand Down
Loading