Skip to content

Commit

Permalink
Merge pull request #279 from mfahlandt/main
Browse files Browse the repository at this point in the history
Change github action to create a PR for related project releases
  • Loading branch information
jberkus committed Dec 29, 2023
2 parents a431b26 + 1a8563d commit 1192386
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/get-releases-weekly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,23 @@
go-version: 1.21
- run: go run main.go
# Commit and push all changed files.
- name: GIT Commit Build Artifacts (coverage, dist, devdist, docs)
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "username@users.noreply.github.com"
git add release-notes-html/*
git add release-notes-md/*
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
git push
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Add last weeks releated Project Updates
title: 'add: last week related project releases'
body: |
This PR is auto-generated.
It adds the latest releases of the past week ${{ steps.date.outputs.date }} to the repository
labels: add, automated pr
branch: add/related-projects-${{ steps.date.outputs.date }}
add-paths: |
scripts/release-crawler/release-notes-html/*.html
scripts/release-crawler/release-notes-md/*.md
base: main
signoff: true
delete-branch: true

0 comments on commit 1192386

Please sign in to comment.