This repository has been archived by the owner on Jan 23, 2025. It is now read-only.
Merge pull request #26 from Beleg-6-EAP/readme #13
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: Push PDF to Abgabe | |
permissions: | |
contents: write | |
on: | |
push: | |
branches: [ "master" ] | |
jobs: | |
push_pdf: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v4 | |
# Push the PDF to the organization repository Abgabe | |
- name: Push PDF to Organization Repository | |
run: | | |
git clone https://x-access-token:${{ secrets.SECRET_TOKEN }}@github.com/Beleg-6-EAP/Abgabe.git target-repo | |
cp main.pdf target-repo/"Präsentation Beleg 6 - Enterprise Architektur-Muster.pdf" | |
cd target-repo | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
git add "Präsentation Beleg 6 - Enterprise Architektur-Muster.pdf" | |
git commit -m "CI: add compiled PDF" || echo "No changes to commit" | |
git push https://x-access-token:${{ secrets.SECRET_TOKEN }}@github.com/Beleg-6-EAP/Abgabe.git | |
env: | |
SECRET_TOKEN: ${{ secrets.SECRET_TOKEN }} |