Update README.md #68
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: "trigger-release" | |
on: | |
push: | |
branches: | |
- release | |
jobs: | |
trigger-release: | |
runs-on: ubuntu-latest | |
outputs: | |
RELEASE_UPLOAD_ID: ${{ steps.create_release.outputs.id }} | |
steps: | |
- name: switch to main branch | |
uses: actions/checkout@v3 | |
with: | |
ref: main | |
- name: get the lastest commit | |
id: get-last-commit | |
run: echo -e "commit= build -> $(git log --oneline -1 --no-decorate)" >> "$GITHUB_OUTPUT" | |
- name: checkout public release repo | |
uses: actions/checkout@v3 | |
with: | |
repository: hudy9x/kompad-homepage | |
token: ${{ secrets.KOMPAD_RELEASE_REPO_TOKEN }} | |
ref: packaging | |
- name: generate new release text | |
run: date > generated.txt && | |
git config user.name github-actions && | |
git config user.email [email protected] && | |
git add . && | |
git commit -m "${{steps.get-last-commit.outputs.commit}}" && | |
git push | |