description: file name of binary
binary-name:
description: target name of binary
- github-token:
- description: token to upload binary
+ github-token-latest:
+ description: token to upload binary to latest
+ github-token-release:
+ description: token to upload binary to release
runs:
using: composite
steps:
if: github.ref == 'refs/heads/main'
shell: 'python3 {0}'
env:
- GITHUB_TOKEN: ${{ inputs.github-token }}
+ GITHUB_TOKEN: ${{ inputs.github-token-latest }}
BINARY: ${{ inputs.binary-name }}
run: |
import datetime
if: startsWith(github.ref, 'refs/tags/')
shell: 'python3 {0}'
env:
- GITHUB_TOKEN: ${{ inputs.github-token }}
+ GITHUB_TOKEN: ${{ inputs.github-token-release }}
BINARY: ${{ inputs.binary-name }}
run: |
import os
with:
binary: ${{ steps.configure-and-build.outputs.static-build-dir }}/bin/cvc5${{ matrix.binary-ext }}
binary-name: ${{ matrix.binary-name }}
- github-token: ${{ secrets.GITHUB_TOKEN }}
+ # when using GITHUB_TOKEN, no further workflows are triggered
+ github-token-latest: ${{ secrets.GITHUB_TOKEN }}
+ github-token-release: ${{ secrets.ACTION_USER_TOKEN }}
update-pr:
runs-on: ubuntu-latest