allow permission to write issue #4
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: Dockerfile Version Check | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- automate_version_check | |
schedule: | |
- cron: "0 0 1 * *" # Run every 1 month | |
env: | |
GH_TOKEN: ${{ github.token }} | |
jobs: | |
check-version: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
defaults: | |
run: | |
working-directory: ./.github | |
steps: | |
- name: Check out the repository to the runner | |
uses: actions/checkout@v4 | |
- name: Install jq, curl, csvkit | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y jq curl csvkit | |
- name: Make the script files executable | |
run: chmod +x version_check.sh | |
- name: Run the scripts | |
run: | | |
./version_check.sh | |
gh issue create --repo getwilds/wilds-docker-library --title "$(date +%B): Docker version check" --body-file version_table.txt |