Release Cache #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: 'Release Cache' | |
on: | |
schedule: | |
# Once a month, second day of month | |
- cron: '0 0 2 * *' | |
jobs: | |
auto-scan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set tag | |
run: | | |
today=$(printf '%(%Y-%m)T\n' -1) | |
echo $today | |
echo "tag=${today}" >> ${GITHUB_ENV} | |
- name: Tag and Release | |
uses: avakar/tag-and-release@8f4b627f03fe59381267d3925d39191e27f44236 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ env.tag }} | |
release_name: SHPC Registry Cache ${{ env.tag }} | |
body: "These container cache records were generated before the start of ${{ env.tag }}" |