How to conditionally run steps and get the tag information using this bot instead of the github-action
danielo515 opened this issue · 2 comments
Hello.
I'm trying to use this bot instead of the github action (google-github-actions/release-please-action@v3) because this bot will trigger my other workflows, and I need them to keep things in sync.
However, I'm not sure how I will read the created release tag, and conditionally run steps if I remove the github action.
For example, given this workflow:
name: Release
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Release Please
uses: google-github-actions/release-please-action@v3
id: release
with:
command: manifest
token: ${{secrets.GITHUB_TOKEN}}
- name: Upload Release Assets
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ steps.release.outputs.tag_name }}
run: |
gh release upload $TAG_NAME main.js manifest.json styles.css
How will I accomplish the same by removing the action and just using this bot?
I would look at an alternative event trigger for your publish action -- I suggest release.created
: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
@chingor13 the release created runs when the release has been already created, and at that time it is too late. I don't want a additional job that adds files to the release after it has been created, I want all my relevant files there by the time the release is created