diff --git a/.github/workflows/pull_request_closed.yml b/.github/workflows/pull_request_closed.yml index 04a6515..a18ea1a 100644 --- a/.github/workflows/pull_request_closed.yml +++ b/.github/workflows/pull_request_closed.yml @@ -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 + diff --git a/.github/workflows/pull_request_updated.yml b/.github/workflows/pull_request_updated.yml index feeb5b3..e6e56f1 100644 --- a/.github/workflows/pull_request_updated.yml +++ b/.github/workflows/pull_request_updated.yml @@ -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" @@ -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."