finished workflow example #5
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: Record Release to Airtable | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
record-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install mc-manage package | |
run: | | |
pip install git+https://github.com/mediacloud/[email protected] | |
- name: Get tag name | |
id: extract_tag | |
run: echo "TAG_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV | |
- name: Record successful release | |
run: | | |
python -m mc-manage.airtable-release-update --name mc-manage --version ${{ env.TAG_NAME }} | |
env: | |
AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }} | |
MEAG_BASE_ID: ${{ secrets.MEAG_BASE_ID}} | |