Jan 17, 2023
- uses: actions/checkout@v3
- run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Set Date id: date run: | echo "YEAR=$(date +"%Y")" >> $GITHUB_ENV echo "WEEK=$(date +"%W")" >> $GITHUB_ENV - name: Another step id: another_step run: | echo "${{ env.WEEK }}"
GitHub CLI is preinstalled on all GitHub-hosted runners.
- name: Create Pull request run: | ... gh pr create --title "Created ${{ env.YEAR }} ${{ env.WEEK }}" --body "PR description"