ci: Update ALL Dependencies (main) -- Workflow Bot (#2991) #468
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: " 🚀 Generate Release Please" | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
permissions: | |
actions: read | |
checks: write | |
contents: write | |
issues: read | |
packages: write | |
pull-requests: write | |
repository-projects: read | |
statuses: read | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
outputs: | |
release_created: ${{ steps.release.outputs.release_created }} | |
tag_name: ${{ steps.release.outputs.tag_name }} | |
version: ${{ steps.release.outputs.version }} | |
steps: | |
- uses: google-github-actions/release-please-action@v4 | |
id: release | |
with: | |
config-file: release-please-config.json | |
manifest-file: .release-please-manifest.json | |
- name: Release Please Results | |
env: | |
RESULTS: ${{ toJSON(steps.release.outputs) }} | |
run: echo "$RESULTS" | |
- name: Checkout code | |
if: ${{ steps.release.outputs.release_created }} | |
uses: actions/checkout@v4 | |
- name: tag versions | |
if: ${{ steps.release.outputs.release_created }} | |
run: | | |
git config user.name github-actions[bot] | |
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | |
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/streetsidesoftware/vscode-spell-checker.git" | |
git tag -a v${{ steps.release.outputs.version }} -m "Release v${{ steps.release.outputs.version }}" | |
git push origin v${{ steps.release.outputs.version }} | |
result: | |
runs-on: ubuntu-latest | |
needs: | |
- release-please | |
env: | |
OUTPUTS: ${{ toJSON(needs.release-please.outputs) }} | |
steps: | |
- run: echo "Result" | |
- run: echo "$OUTPUTS" | |
assets: | |
needs: | |
- release-please | |
if: ${{ needs.release-please.outputs.release_created }} | |
uses: ./.github/workflows/release-assets.yml | |
with: | |
ref: ${{ needs.release-please.outputs.tag_name }} | |
publish: | |
needs: | |
- release-please | |
if: ${{ needs.release-please.outputs.release_created }} | |
uses: ./.github/workflows/manual-publish.yml | |
with: | |
ref: ${{ needs.release-please.outputs.tag_name }} | |
secrets: | |
OVSX_TOKEN: ${{ secrets.OVSX_TOKEN }} | |
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }} |