Skip to content

Commit

Permalink
Add GitHub action to add a tag every Monday
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon committed Apr 10, 2020
1 parent 2da4bb8 commit a493a68
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Tag with Chromium version

on:
schedule:
- cron: '0 6 * * 1'

jobs:
add_tag:
runs-on: ubuntu-latest
steps:
- name: Get Chromium branch
id: chromium
shell: bash
run: echo "::set-output name=branch::$(git ls-remote --heads https://pdfium.googlesource.com/pdfium.git | grep -ohP 'chromium/\d+' | tail -n1)"
- name: Add tag
uses: tvdias/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
tag: ${{ steps.chromium.outputs.branch }}
10 changes: 0 additions & 10 deletions tag_with_latest.sh

This file was deleted.

0 comments on commit a493a68

Please sign in to comment.