testing #6
Workflow file for this run
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: File Versioning | |
on: | |
push: | |
branches: | |
- '*' | |
tags: | |
- '*' | |
jobs: | |
update_versioning: | |
runs-on: ubuntu-latest | |
env: | |
API_KEY: ${{ secrets.API_KEY }} | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
permissions: | |
actions: write | |
checks: write | |
contents: write | |
deployments: write | |
id-token: write | |
issues: write | |
discussions: write | |
packages: write | |
pages: write | |
pull-requests: write | |
repository-projects: write | |
security-events: write | |
statuses: write | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v2 | |
- name: Set up Git | |
run: | | |
git config user.email "actions@wcrp-cmip.org" | |
git config user.name "CMIP-IPO: Automated GitHub Action" | |
git config credential.helper store | |
git config --global user.email "actions@wcrp-cmip.org" | |
git config --global user.name "CMIP-IPO GitHub Action" | |
git config --global push.default current | |
echo "GH_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV | |
shell: bash | |
- name: Update Versioning | |
id: run-python-script | |
run: python .github/libs/version.py -t ${GH_TOKEN} | |
# working-directory: .github/libs # Adjusted the working directory | |
shell: bash |