Skip to content

Commit

Permalink
move sid tag to tip after test
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaranville committed Nov 23, 2021
1 parent 44a46cc commit 730ed72
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,29 @@ jobs:
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}


advanceSidTag:
needs: publish
runs-on: ubuntu-latest
steps:
- name: Advance sid tag
uses: actions/github-script@v3
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
try {
await github.git.deleteRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "tags/sid"
})
} catch (e) {
console.log("The sid tag doesn't exist yet: " + e)
}
await github.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/sid",
sha: context.sha
})

0 comments on commit 730ed72

Please sign in to comment.